projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2003-06-05 14:04:28 by stolz]
[ghc-hetmet.git]
/
ghc
/
compiler
/
main
/
SysTools.lhs
diff --git
a/ghc/compiler/main/SysTools.lhs
b/ghc/compiler/main/SysTools.lhs
index
c8163d9
..
20339bc
100644
(file)
--- a/
ghc/compiler/main/SysTools.lhs
+++ b/
ghc/compiler/main/SysTools.lhs
@@
-720,7
+720,16
@@
runSomething phase_name pgm args
-- NOT REACHED
return ExitSuccess
Just child -> do -- Parent
-- NOT REACHED
return ExitSuccess
Just child -> do -- Parent
+#if __GLASGOW_HASKELL__ <= 504
+ -- avoid interaction with broken getProcessStatus-FFI:
+ oldHandler <- installHandler sigCONT Ignore Nothing
+#endif
Just (Exited res) <- getProcessStatus True False child
Just (Exited res) <- getProcessStatus True False child
+#if __GLASGOW_HASKELL__ <= 504
+ -- restore handler
+ installHandler sigCONT oldHandler Nothing
+#endif
+
return res
#else
exit_code <- rawSystem cmd_line
return res
#else
exit_code <- rawSystem cmd_line