#27917 [WFx]: [PCNTL] when fork() fails, parent process dies. [PATCH]
| From: | s dot masugata at digicom dot dnp dot co dot jp | Date: | Fri, 09 Apr 2004 04:25:52 +0000 |
| Subject: | #27917 [WFx]: [PCNTL] when fork() fails, parent process dies. [PATCH] | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-57832@lists.php.net to get a copy of this message | ||
ID: 27917
User updated by: s dot masugata at digicom dot dnp dot co dot jp
Reported By: s dot masugata at digicom dot dnp dot co dot jp
Status: Wont fix
Bug Type: POSIX related
Operating System: *
PHP Version: PHP4.3.6RC3
New Comment:
Oh...Isn't PHP5 fixed?
Previous Comments:
------------------------------------------------------------------------
[2004-04-09 00:19:47] gschlossnagle@php.net
Alas, changing this will break backwards compatibility.
------------------------------------------------------------------------
[2004-04-09 00:16:04] s dot masugata at digicom dot dnp dot co dot jp
PHP4.3.6RC3 was not changed, either, the version changed.
------------------------------------------------------------------------
[2004-04-08 04:13:24] 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);
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27917&edit=1