Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.0

Bug #16640 [PHP Error] pcntl_signal(): Error assigning signal [l:1110]
Submitted: 2009-09-24 18:21 UTC
From: leening Assigned: kvz
Status: Closed Package: System_Daemon (version CVS)
PHP Version: 5.2.5 OS: Linux Ubuntu 9.04
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 33 + 9 = ?

 
 [2009-09-24 18:21 UTC] leening (Michiel van Leening)
Description: ------------ I've replace Daemon.php with the version from git but get the following error: [Sep 24 14:06:10] notice: starting test daemon, output in: /var/tmp/oooqd.log [Sep 24 14:06:10] warning: [PHP Error] pcntl_signal(): Error assigning signal [l:1110] [Sep 24 14:06:10] emerg: test daemon was unable to reroute signal handler 0 [l:1113] Test script: --------------- Standard test script as per example, with added System_Daemon::setSigHandler calls, but even without them i get this error.

Comments

 [2009-09-24 18:34 UTC] leening (Michiel van Leening)
Tried the following approach, and the error has gone away. This might not be the best solution, but gives insight into whe it will work: # line 1110 if ($signal > 0 && $signal != 9 && $signal != 19) { # code } Maybe remove the signals from the list of predefined signals?
 [2009-09-25 17:08 UTC] kvz (Kevin van Zonneveld)
-Status: Open +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. Thanks for looking into this Michiel! http://github.com/kvz/system_daemon/commit/7941e3dc6300c1d852f6966931a9b0a6a706228c