[commit: process] master: Add some braces for clarity (5933e48)
Ian Lynagh
igloo at earth.li
Sun Jun 2 23:22:27 CEST 2013
Repository : ssh://darcs.haskell.org//srv/darcs/packages/process
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/5933e48ac037edcd91a81af161954e2af6ea2d88
>---------------------------------------------------------------
commit 5933e48ac037edcd91a81af161954e2af6ea2d88
Author: Ian Lynagh <ian at well-typed.com>
Date: Sun Jun 2 15:09:11 2013 +0100
Add some braces for clarity
>---------------------------------------------------------------
cbits/runProcess.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/cbits/runProcess.c b/cbits/runProcess.c
index 373fe63..ed524a5 100644
--- a/cbits/runProcess.c
+++ b/cbits/runProcess.c
@@ -283,7 +283,7 @@ int waitForProcess (ProcHandle handle, int *pret)
*pret = WEXITSTATUS(wstat);
return 0;
}
- else
+ else {
if (WIFSIGNALED(wstat))
{
*pret = TERMSIG_STATUS(WTERMSIG(wstat));
@@ -293,6 +293,7 @@ int waitForProcess (ProcHandle handle, int *pret)
{
/* This should never happen */
}
+ }
return -1;
}
More information about the ghc-commits
mailing list