]> granicus.if.org Git - php/commitdiff
In NetWare LibC WTERMSIG is avaliable as WIFTERMSIG
authorAnantha Kesari H Y <hyanantha@php.net>
Fri, 11 Mar 2005 09:01:52 +0000 (09:01 +0000)
committerAnantha Kesari H Y <hyanantha@php.net>
Fri, 11 Mar 2005 09:01:52 +0000 (09:01 +0000)
ext/standard/proc_open.c

index 569f4b287344a929fcb0142503b5e7b9055df2b9..1d641f23d2901a1385780f5f2581029b97b19eeb 100644 (file)
@@ -398,7 +398,11 @@ PHP_FUNCTION(proc_get_status)
                }
                if (WIFSIGNALED(wstatus)) {
                        signaled = 1;
+#ifdef NETWARE
+                       termsig = WIFTERMSIG(wstatus);
+#else
                        termsig = WTERMSIG(wstatus);
+#endif
                }
                if (WIFSTOPPED(wstatus)) {
                        stopped = 1;