#27917 [Ver->WFx]: [PCNTL] when fork() fails, parent process dies. [PATCH]

From: Date: Fri, 09 Apr 2004 04:19:47 +0000
Subject: #27917 [Ver->WFx]: [PCNTL] when fork() fails, parent process dies. [PATCH]
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-57831@lists.php.net to get a copy of this message
ID: 27917 Updated by: gschlossnagle@php.net Reported By: s dot masugata at digicom dot dnp dot co dot jp -Status: Verified +Status: Wont fix -Bug Type: Unknown/Other Function +Bug Type: POSIX related Operating System: * PHP Version: PHP4.3.6RC3 New Comment: Alas, changing this will break backwards compatibility. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#57831) next »