Req #16638 [Com]: Possibility to add more signals

From: Date: Thu, 24 Sep 2009 12:12:23 +0000
Subject: Req #16638 [Com]: Possibility to add more signals
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-1721@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=16638&edit=1 ID: 16638 Comment by: leening@dmmw.nl Reported By: leening at dmmw dot nl Summary: Possibility to add more signals Status: Closed Type: Feature/Change Request Package: System_Daemon Operating System: Ubuntu Linux 9.04 Package Version: 0.9.2 PHP Version: 5.2.5 Assigned To: kvz Roadmap Versions: New Comment: Thanks! Previous Comments: ------------------------------------------------------------------------ [2009-09-24 13:00:46] kvz -Status: Feedback +Status: Closed -Assigned To: +Assigned To: kvz This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. OK. took a hard look at http://gcov.php.net/PHP_5_3/lcov_html/pcntl/pcntl.c.gcov.php And added all SIGNALS to the System_Daemon script: http://github.com/kvz/system_daemon/commit/63eac05433375ad140636b8256c091d6f5cb62b9 Some are added conditionally (converted by ::start() ) as they may not be available in all PHP versions. Will be in published in 0.9.3. Until then you could replace the Daemon.php file by the raw version in GitHub. ------------------------------------------------------------------------ [2009-09-24 12:28:05] leening Hi Kevin, Thanks for your speedy reply! I think all possible signals except unblockable ones, which i believe are KILL and STOP. That leaves us with: QUIT ILL TRAP BUS FPE SEGV USR2 STKFLT TSTP TTIN TTOU URG XCPU XFSZ VTALRM PROF WINCH POLL PWR SYS RTMIN RTMIN+1 RTMIN+2 RTMIN+3 RTMAX-3 RTMAX-2 RTMAX-1 RTMAX Please see "man kill" : http://unixhelp.ed.ac.uk/CGI/man-cgi?kill ------------------------------------------------------------------------ [2009-09-24 11:56:49] kvz -Status: Open +Status: Feedback Hi Michiel, Thanks for your request. Could you provide me a list of all the signals that you would like to see implemented? Then I can wrap them up in 0.9.3 ------------------------------------------------------------------------ [2009-09-24 09:46:06] leening Description: ------------ It would be nice to have the ability to add more signals Eg. right now only SIGUSR1 is defined, but SIGUSR2 would come in handy (or any other signal for that matter) Test script: --------------- System_Daemon::setSigHandler(SIGUSR2, "myActionTwo"); Expected result: ---------------- That the daemon responds to SIGUSR2 :-) ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=16638&edit=1

« previous php.pear.bugs (#1721) next »