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

Bug #17254 Error assiging signal handler
Submitted: 2010-03-23 00:33 UTC
From: austinb Assigned: kvz
Status: Closed Package: System_Daemon (version 0.10.2)
PHP Version: 5.3.2 OS: CentOS 5.4 x86
Roadmaps: (Not assigned)    
Subscription  


 [2010-03-23 00:33 UTC] austinb (Austin Bischoff)
Description: ------------ In reference to bug #17225 still having issues with 'SIG_BLOCK' => array('System_Daemon', 'defaultSigHandler'), as defined as part of the $_sigHandlers array. Either commenting it out or making it a constant refrence instead of a string makes it work properly. Note this is PHP 5.3.2 on CentOS 5.4 x86 (32-bit). According to http://www.php.net/manual/en/pcntl.constants.php SIG_BLOCK plus alot more constants were added starting in 5.3.0. Is it possible this is a compat problem between 5.2 and the 5.3 series? Perhaps some version sniffing might be needed to correct thisissue? I am unable to get any previously working 0.9.2 script to work in 0.10.1 or 0.10.2. If it helps this is my configure line: './configure' '--with-mysql=/usr/lib' '--with-zlib' '--with-openssl' '--with-mhash' '--with-mcrypt' '--with-gd' '--enable-ftp' '--enable-exif' '--with-jpeg-dir=/usr/lib' '--with-zlib-dir=/usr/lib' '--with-png-dir=/usr/lib' '--with-freetype-dir=/usr/lib' '--enable-gd-native-ttf' '--enable-gd-jis-conv' '--with-curl=/usr/lib' '--with-mysqli=/usr/bin/mysql_config' '--enable-cgi' '--enable-mbstring' '--enable-bcmath' '--enable-soap' '--with-readline' '--enable-pcntl' '--with-bz2' '--enable-zip' '--with-iconv' '--with-tidy' '--with-gettext=/usr/lib' Test script: --------------- Any script that works in 0.9.2 Expected result: ---------------- Script launches are daemon and runs as it should. Actual result: -------------- [Mar 15 13:38:24] notice: Startup written to '/etc/rc.d/init.d/StatsDaemon' [Mar 15 13:38:24] notice: Starting StatsDaemon daemon, output in: /var/log/StatsDaemon.log [Mar 15 13:38:24] info: Changed identify to 'apache':'apache' [Mar 15 13:38:24] warning: [PHP Error] pcntl_signal(): Error assigning signal [l:1289] [Mar 15 13:38:24] emerg: Unable to reroute signal handler: 0 [l:1293]

Comments

 [2010-03-24 13:57 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 your information. It's helpful as I can't reproduce this myself. Could you confirm that this fixes the problem? http://github.com/kvz/system_daemon/commit/11abe6dfb10888c82087c89554bf4db1 69a23cc7
 [2010-03-24 22:41 UTC] austinb (Austin Bischoff)
I just downloaded the file from git and as it is committed the daemon will start now. Thanks.
 [2010-03-25 01:09 UTC] kvz (Kevin van Zonneveld)
Awesome, I'll make sure to pack it in the coming release
 [2010-05-04 16:58 UTC] rburgt (Rob van der Burgt)
Confirmed, had the same problem, downloaded patch, works great. php: 5.3.2 OS: CentOS 5.3 can you please add this to PEAR?
 [2010-05-04 17:13 UTC] kvz (Kevin van Zonneveld)
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/ This should have been fixed in 10.2 but something in went wrong in the release procedure. I've confirmed 10.3 packs the correct fix. Please try that version