perlknight has asked for the wisdom of the Perl Monks concerning the following question:
Shouldn't one SIGHUP be enough to terminate the child processe? Why do you need two SIGHUP? Thanks.sub do_child { ... $SIG{HUP} = sub { $done++; }; while { !$done && $cycle--) { $status{$$} = 'idle'; kill ALRM=>getppid(); my $c; next unless eval { local $SIG{HUP} = sub { $done++; die}; ... } .... } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Preforking using share mem
by Ionitor (Scribe) on Jul 24, 2002 at 16:55 UTC | |
|
Re: Preforking using share mem
by Abigail-II (Bishop) on Jul 24, 2002 at 16:29 UTC | |
by Rex(Wrecks) (Curate) on Jul 24, 2002 at 16:47 UTC | |
by Abigail-II (Bishop) on Jul 24, 2002 at 16:56 UTC | |
by Rex(Wrecks) (Curate) on Jul 24, 2002 at 17:53 UTC |