diff options
Diffstat (limited to 'otherlibs/win32unix/winwait.c')
-rw-r--r-- | otherlibs/win32unix/winwait.c | 9 |
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); } |