grazinggoat
Programmer
Greetings Folks!
I have a script that kicks off multiple threads that I would like to make sure if say I do a cntrl-c (the script is force aborted) will not only kill the parent PID but any sub process?
any thoughts on how I can do this where the script knows its been terminated? I've been looking at links on signal traps but am not sure which way would be idea and clean. Any thoughts / suggestions?
thanks!
I have a script that kicks off multiple threads that I would like to make sure if say I do a cntrl-c (the script is force aborted) will not only kill the parent PID but any sub process?
any thoughts on how I can do this where the script knows its been terminated? I've been looking at links on signal traps but am not sure which way would be idea and clean. Any thoughts / suggestions?
thanks!