in reply to Re: wierd wierd behavior with SIGTERM and classes
in thread wierd wierd behavior with SIGTERM and classes

The thing is.. there aren't really any children involved. I'm starting each script up on the command line so each one is already in its own process group. And apparently, setsid() only works if your not a process leader.

Another thing I just found was, killing the first instance of the script doesn't do anything but stop the first script. Killing the 2nd or 3rd kills all 3 but killing the first only kills that instance.

This is just getting odder and odder.

  • Comment on Re: Re: wierd wierd behavior with SIGTERM and classes

Replies are listed 'Best First'.
Re: Re: Re: wierd wierd behavior with SIGTERM and classes
by steves (Curate) on Mar 04, 2002 at 02:47 UTC

    This is strange. Do you have more specifics? Such as the OS, the OS version, which shell, which version of Perl, and a sample of what the command line looks like starting these? If you also had a case where it fails like this along with the PID, PPID, SID, etc. of each one it would help.