]> granicus.if.org Git - php/commitdiff
- There was one ret left, changed it to FG(pclose_ret), this fixes the
authorDerick Rethans <derick@php.net>
Sat, 13 Jan 2001 21:52:09 +0000 (21:52 +0000)
committerDerick Rethans <derick@php.net>
Sat, 13 Jan 2001 21:52:09 +0000 (21:52 +0000)
  build

ext/standard/exec.c

index 27c06793cb07ecab995ca3aca7c94069ab85b29d..5a494e664e878ba0038623cbbf716014c4f5e10a 100644 (file)
@@ -199,7 +199,7 @@ static int _Exec(int type, char *cmd, pval *array, pval *return_value)
 
 #if HAVE_SYS_WAIT_H
        if (WIFEXITED(FG(pclose_ret))) {
-               ret = WEXITSTATUS(FG(pclose_ret));
+               FG(pclose_ret) = WEXITSTATUS(FG(pclose_ret));
        }
 #endif