php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14648 pcntl_signal(SIGCHLD, SIG_IGN) does not follow expected behavior on linux
Submitted: 2001-12-21 12:33 UTC Modified: 2002-01-24 16:09 UTC
From: richard at phpguru dot org Assigned: jason (profile)
Status: Closed Package: Unknown/Other Function
PHP Version: 4.1.0 OS: RHL 7.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: richard at phpguru dot org
New email:
PHP Version: OS:

 

 [2001-12-21 12:33 UTC] richard at phpguru dot org
As requested by J Greene, a report for the fix of pcntl_signal on Linux. Also the pcntl_signal() function
fails when giving a function with this error msg:

Warning:  Cannot convert to ordinal value in /raid/Files/Heyes-Computing/development/fork.test.php on line 25
/raid/Files/Heyes-Computing/development/fork.test.php(25) : Warning - Cannot convert to ordinal value


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-22 21:59 UTC] jason@php.net
This has to do with the fact that SIGCHLD+SIG_IGN was never in the posix standard. I will need to write a workaround for this under linux. Until that point, linux users must catch the handle and wait on the child.

Have not reproduced the ordinal warning message yet, will investigate ...

 [2002-01-15 12:47 UTC] jason@php.net
Just wamted to give you an update that I have not had much time to work on this lately, but I am planning on getting to it as soon as I can.

Thanks,
-Jason

 [2002-01-24 16:09 UTC] jason@php.net
Unfortunately it appears that linux does not support SA_NOCLDWAIT, which is the work around I was planning on implementing. If and when they do add support for it, I will add support for it into pcntl.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Sep 29 01:01:26 2024 UTC