[llvm-commits] [llvm] r46715 - /llvm/trunk/lib/System/Unix/Program.inc

Devang Patel dpatel at apple.com
Mon Feb 4 12:58:06 PST 2008


Author: dpatel
Date: Mon Feb  4 14:57:54 2008
New Revision: 46715

URL: http://llvm.org/viewvc/llvm-project?rev=46715&view=rev
Log:
Set error message.
Patch by Shantonu Sen.

Modified:
    llvm/trunk/lib/System/Unix/Program.inc

Modified: llvm/trunk/lib/System/Unix/Program.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Unix/Program.inc?rev=46715&r1=46714&r2=46715&view=diff

==============================================================================
--- llvm/trunk/lib/System/Unix/Program.inc (original)
+++ llvm/trunk/lib/System/Unix/Program.inc Mon Feb  4 14:57:54 2008
@@ -242,9 +242,11 @@
       // Wait for child to die
       if (wait(&status) != child)
         MakeErrMsg(ErrMsg, "Child timed out but wouldn't die");
-        
+      else
+        MakeErrMsg(ErrMsg, "Child timed out", 0);
+
       return -1;   // Timeout detected
-    } else {
+    } else if (errno != EINTR) {
       MakeErrMsg(ErrMsg, "Error waiting for child process");
       return -1;
     }





More information about the llvm-commits mailing list