diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-05-30 12:33:05 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-05-30 12:33:05 +0000 |
commit | 3031ea750afa49c0f89bb839e3d629fb3262c28b (patch) | |
tree | 12697a8c88d3a984558f6a82c36c871c6918ffa0 /pod/perlipc.pod | |
parent | 28494392d67f95ee74740353c8e635f622ffe336 (diff) | |
download | perl-3031ea750afa49c0f89bb839e3d629fb3262c28b.tar.gz |
Fix up the signal handler reinstallation lore.
p4raw-id: //depot/perl@16877
Diffstat (limited to 'pod/perlipc.pod')
-rw-r--r-- | pod/perlipc.pod | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pod/perlipc.pod b/pod/perlipc.pod index 3af062f6b4..2df556fefd 100644 --- a/pod/perlipc.pod +++ b/pod/perlipc.pod @@ -179,9 +179,11 @@ the process. Many daemons provide this mechanism using the C<SIGHUP> signal handler. When you want to tell the daemon to re-read the file you simply send it the C<SIGHUP> signal. -The implementation of such a mechanism in Perl using a normal signal -handler works only the first time the signal is sent. The solution to -this problem is to use C<POSIX> signal handlers if available. +Not all platforms automatically reinstall their (native) signal +handlers after a signal delivery. This means that the handler works +only the first time the signal is sent. The solution to this problem +is to use C<POSIX> signal handlers if available, their behaviour +is well-defined. The following example implements a simple daemon, which restarts itself every time the C<SIGHUP> signal is received. The actual code is |