[PATCH] fix bug where sys::Wait could wait on wrong pid
Daniel Reynaud
dreynaud at apple.com
Mon Sep 15 10:55:51 PDT 2014
Ping.
On Sep 5, 2014, at 10:15 AM, Daniel Reynaud <dreynaud at apple.com> wrote:
> I see no reason to set ChildPid to -1 when WaitUntilTerminates is true.
>
> If there was some other unwaited-for child process that terminates before PI.Pid, its pid would be returned instead of PI.Pid so the function would return "Error waiting for child process", even though errno is 0.
>
> By making we wait on the right process, this works as expected.
>
>
> <waitpid.diff>_______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list