185 |
|
if(hWrite) CloseHandle(hWrite); |
186 |
|
if(hCurProc) CloseHandle(hCurProc); |
187 |
|
proc->running = 0; |
188 |
< |
return 0; |
188 |
> |
return -1; |
189 |
|
/* There... Are we happy now? */ |
190 |
|
} |
191 |
|
|
280 |
|
char *cmdstr; |
281 |
|
|
282 |
|
proc->running = 0; |
283 |
+ |
if (av == NULL) { return -1; } |
284 |
|
cmdpath = getpath(av[0], getenv("PATH"), X_OK); |
285 |
< |
cmdstr = quoted_cmdline(cmdpath, av); |
285 |
> |
cmdstr = quoted_cmdline(cmdpath, av+1); |
286 |
|
if (cmdstr == NULL) { return 0; } |
287 |
|
return start_process(proc, cmdstr); |
288 |
|
} |
326 |
|
/* something went wrong: enforce infanticide */ |
327 |
|
/* other than that, it looks like we want to ignore errors here */ |
328 |
|
if (proc->running) { |
329 |
< |
int win_kill(pid, 0); |
329 |
> |
win_kill(pid, 0); |
330 |
|
} |
331 |
|
} |
332 |
|
proc->running = 0; |