summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/winwait.c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1996-09-17 14:43:05 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1996-09-17 14:43:05 +0000
commit5266f760449e6c8a2572e7caef83d1d03cd97fda (patch)
treef4d3ff548dbe958ddc13d84cc2c402c8c289beec /otherlibs/win32unix/winwait.c
parent1685e9fa9dc52d96938b4579327863db8ccbae03 (diff)
close_on.c: reecriture complete
createprocess.c: chercher dans le PATH unix.ml: il faut deux \000 a la fin d'un bloc d'environnement winwait.c: le PID renvoye n'etait pas bon. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@985 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/win32unix/winwait.c')
-rw-r--r--otherlibs/win32unix/winwait.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/otherlibs/win32unix/winwait.c b/otherlibs/win32unix/winwait.c
index ac1865cf0..6b078a9cc 100644
--- a/otherlibs/win32unix/winwait.c
+++ b/otherlibs/win32unix/winwait.c
@@ -37,11 +37,12 @@ static value alloc_process_status(pid, status)
return res;
}
-value win_waitpid(flags, pid_req)
- value flags, pid_req;
+value win_waitpid(flags, vpid_req)
+ value flags, vpid_req;
{
- int status;
- if (_cwait(&status,Int_val(pid_req), 0/* ignored by win32 */) == -1)
+ int status, pid_req;
+ pid_req = Int_val(vpid_req);
+ if (_cwait(&status, pid_req, 0/* ignored by win32 */) == -1)
uerror("waitpid", Nothing);
return alloc_process_status(pid_req, status);
}