shrubbery has asked for the wisdom of the Perl Monks concerning the following question:
I do this basically so each app that uses this class can have its own set sigterm handler.$SIG{TERM} = "sigterm_handler";
Now, this is where the wierdness starts. First, I start up multiple instances of the same perl script which is using this class. They have different PIDS and PGIDs but the same PPIDs and SIDs.
Now I send a SIGTERM (basically "kill <pid>") to ANY of these processes.. and the rest also receives the SIGTERM! I'm fairly sure its a clean SIGTERM exit because I log in the handler. But now if I remove the sym ref in the class, this DOESN'T happen.
This is just so odd to me. How would sending a SIGTERM to one process propagate to another? I need help.. and an Advil.
TIA
Mike
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: wierd wierd behavior with SIGTERM and classes
by steves (Curate) on Feb 28, 2002 at 21:53 UTC | |
by shrubbery (Acolyte) on Feb 28, 2002 at 22:01 UTC | |
|
Re: wierd wierd behavior with SIGTERM and classes
by bluto (Curate) on Mar 01, 2002 at 00:06 UTC | |
by shrubbery (Acolyte) on Mar 01, 2002 at 16:46 UTC | |
by steves (Curate) on Mar 04, 2002 at 02:47 UTC |