X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=lib%2FSupport%2FUnix%2FProgram.inc;h=7bf6eceda73389b35f75037abc72aa787e9e3527;hp=905c78f79bc323916eb4ac67ee7d21e278dbfc0c;hb=f6066a7fd359459256ad8d589a74e02af462c982;hpb=52a6f59d41086b05b11b2ce86946a22f1dc5c5b4;ds=sidebyside diff --git a/lib/Support/Unix/Program.inc b/lib/Support/Unix/Program.inc index 905c78f79bc..7bf6eceda73 100644 --- a/lib/Support/Unix/Program.inc +++ b/lib/Support/Unix/Program.inc @@ -335,7 +335,6 @@ ProcessInfo sys::Wait(const ProcessInfo &PI, unsigned SecondsToWait, pid_t ChildPid = PI.Pid; if (WaitUntilTerminates) { SecondsToWait = 0; - ChildPid = -1; // mimic a wait() using waitpid() } else if (SecondsToWait) { // Install a timeout handler. The handler itself does nothing, but the // simple fact of having a handler at all causes the wait below to return