I have an expect program that calls
set ftpChildPID [exec trafficAux &]
then after sometime calls
exec kill -HUP $ftpChildPID
the child process (also written in TCL/expect)
set isdone 1
the intention is to send the child process a signal and allow the child to exit gracefully.
Currently when this code is executed, the child exits gracefully and then the parent process becomes unresponsive.