From: Jarkko Hietaniemi Date: Thu, 30 May 2002 12:33:05 +0000 (+0000) Subject: Fix up the signal handler reinstallation lore. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3031ea750afa49c0f89bb839e3d629fb3262c28b;p=p5sagit%2Fp5-mst-13.2.git Fix up the signal handler reinstallation lore. p4raw-id: //depot/perl@16877 --- diff --git a/pod/perlipc.pod b/pod/perlipc.pod index 3af062f..2df556f 100644 --- a/pod/perlipc.pod +++ b/pod/perlipc.pod @@ -179,9 +179,11 @@ the process. Many daemons provide this mechanism using the C signal handler. When you want to tell the daemon to re-read the file you simply send it the C 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 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 signal handlers if available, their behaviour +is well-defined. The following example implements a simple daemon, which restarts itself every time the C signal is received. The actual code is