I'm having problems understanding how SIG works on UNIX I guess.
I have a script that looks something like:
As far as I can tell, my signal handeler is never called, so I assume the forked process under the system call is getting the signal -- it does exit. How do I get this passed up to the parent?$SIG{INT} = sub {$Abort++}; while (1) { if($Abort) exit(0); system(do something); }
Thanks
Steve S.
Edited by Chady -- added code tags, minor formatting.
In reply to SIG and system by =sjs=
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |