#17538 [Opn->Fbk]: proc_close() doesn't return exit value of process

From: Date: Thu, 01 Aug 2002 20:26:31 +0000
Subject: #17538 [Opn->Fbk]: proc_close() doesn't return exit value of process
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15768@lists.php.net to get a copy of this message
ID: 17538 Updated by: kalowsky@php.net Reported By: kims@contrail.com.au -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: Debian GNU/Linux PHP Version: 4.0CVS-2002-05-30 Assigned To: wez New Comment: marking as feedback until user tests new snapshot. Previous Comments: ------------------------------------------------------------------------ [2002-08-01 15:49:19] jflemer@php.net Patch applied by rasmus. Please try latest CVS (or snapshot after now). ------------------------------------------------------------------------ [2002-08-01 12:09:52] jflemer@php.net By the way, it also seems to make lots of zombies, which is probably related. ------------------------------------------------------------------------ [2002-08-01 11:48:16] jflemer@php.net Do you think this could do it? Index: ext/standard/exec.c =================================================================== RCS file: /repository/php4/ext/standard/exec.c,v retrieving revision 1.77 diff -u -r1.77 exec.c --- ext/standard/exec.c 8 Jul 2002 12:52:22 -0000 1.77 +++ ext/standard/exec.c 1 Aug 2002 15:47:29 -0000 @@ -567,7 +567,7 @@ do { wait_pid = waitpid(child, &wstatus, 0); - } while (wait_pid == -1 && errno = EINTR); + } while (wait_pid == -1 && errno == EINTR); if (wait_pid == -1) FG(pclose_ret) = -1; ------------------------------------------------------------------------ [2002-08-01 11:35:42] jflemer@php.net Also w/ 4.3 SNAP 2002-07-03-1200 on RedHat 7.3. Config ops: --with-apxs --with-mysql=/usr/local/mysql --with-dom --with-xmlrpc --with-zlib-dir=/usr Always seems to return -1. ------------------------------------------------------------------------ [2002-05-31 00:16:58] kims@contrail.com.au For what it's worth, this problem also occurrs when php is compiled with --enable-sigchild. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/17538 -- Edit this bug report at http://bugs.php.net/?id=17538&edit=1

« previous php.bugs (#15768) next »