in reply to Killing Forks
"Unlike in the shell, if SIGNAL is negative, it kills process groups instead of processes. (On System V, a negative PROCESS number will also kill process groups, but that’s not portable.) That means you usually want to use positive not negative signals. You may also use a signal name in quotes."
You probably also want to set the alarm before doing the operation which may take a long time.
I'm not sure, but you might also be able to set the alarm handler (and possibly also call alarm) before the fork. I haven't checked, but those two properties might both be preserved across fork.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Killing Forks
by Earindil (Beadle) on Aug 14, 2007 at 13:17 UTC | |
by jbert (Priest) on Aug 14, 2007 at 13:34 UTC | |
by Earindil (Beadle) on Aug 14, 2007 at 13:41 UTC | |
by Earindil (Beadle) on Aug 14, 2007 at 14:14 UTC | |
by jbert (Priest) on Aug 14, 2007 at 16:15 UTC | |
by cdarke (Prior) on Aug 14, 2007 at 16:18 UTC |