php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27917 [PCNTL] when fork() fails, parent process dies. [PATCH]
Submitted: 2004-04-08 04:13 UTC Modified: 2004-04-09 05:31 UTC
Votes:18
Avg. Score:3.9 ± 1.0
Reproduced:5 of 7 (71.4%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: s dot masugata at digicom dot dnp dot co dot jp Assigned:
Status: Wont fix Package: POSIX related
PHP Version: PHP4.3.6RC3 OS: *
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: s dot masugata at digicom dot dnp dot co dot jp
New email:
PHP Version: OS:

 

 [2004-04-08 04:13 UTC] s dot masugata at digicom dot dnp dot co dot jp
Description:
------------
When generation of a child process is repeated repeatedly and more than this and a child process cannot be generated, a parent process will die.

It seems that a snapshot isn't changed.

--- php-4.3.5/ext/pcntl/pcntl.c	Fri Jan 23 16:02:54 2004
+++ ./pcntl.c	Thu Apr  8 16:17:39 2004
@@ -189,7 +189,7 @@
 
 	id = fork();
 	if (id == -1) {
-		php_error(E_ERROR, "Error %d in %s", errno, get_active_function_name(TSRMLS_C));
+		php_error(E_NOTICE, "Error %d in %s", errno, get_active_function_name(TSRMLS_C));
 	}
 	
 	RETURN_LONG((long) id);



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-09 00:16 UTC] s dot masugata at digicom dot dnp dot co dot jp
PHP4.3.6RC3 was not changed, either, the version changed.
 [2004-04-09 00:19 UTC] gschlossnagle@php.net
Alas, changing this will break backwards compatibility.
 [2004-04-09 00:25 UTC] s dot masugata at digicom dot dnp dot co dot jp
Oh...Isn't PHP5 fixed?
 [2004-04-09 00:42 UTC] gschlossnagle@php.net
php5 has the same behavior.
 [2004-04-09 00:52 UTC] s dot masugata at digicom dot dnp dot co dot jp
Why?
I think that this is bug.
Not good to leave a bug even if there is a problem of compatibility.
 [2004-04-09 04:37 UTC] test0625a at mbs dot sphere dot ne dot jp
I think that it is a bug. 
Although you tell for maintaining low rank compatibility, do you think that you are true with someone's being troubled?
Do you consider this bug from which a parent process dies that the application and the software which were used exist?
 [2004-04-09 05:31 UTC] s dot masugata at digicom dot dnp dot co dot jp
It's agreement.

I think that a parent process's dying and 
the problem of compatibility are another.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 11:01:28 2024 UTC