in reply to (tye)Re2: multiple fork()
in thread multiple fork()
"But that will be problematic for the more complicated handlers that need to reinstall themselves. Because Perl's signal mechanism is currently based on the signal(3) function from the C library, you may sometimes be so misfortunate as to run on systems where that function is "broken", that is, it behaves in the old unreliable SysV way rather than the newer, more reasonable BSD and POSIX fashion. So you'll see defensive people writing signal handlers like this:"and then an example similar to mine follows. I have found it to be very stable under a 2.2.16 linux kernel. Maybe other os's have gaping holes in them, but the linux distros I have tried it on are fine.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re3: multiple fork()
by tye (Sage) on Apr 17, 2001 at 01:04 UTC | |
by Rhandom (Curate) on Apr 17, 2001 at 01:15 UTC | |
by tye (Sage) on Apr 17, 2001 at 01:25 UTC |