Commit 2701c66e authored by sof's avatar sof

[project @ 1998-02-09 09:07:32 by sof]

Re-commit of cygwin32 fix
parent 1d210d0a
......@@ -24,6 +24,21 @@ StgInt
StgByteArray cmd;
#if defined(cygwin32_TARGET_OS)
/* The implementation of std. fork() has its problems
under cygwin32-b18, so we fall back on using libc's
system() instead. (It in turn has problems, as it
does not wait until the sub shell has finished before
returning. Using sleep() works around that.)
if (system(cmd) < 0) {
return -1;
return 0;
int pid;
int wstat;
......@@ -60,6 +75,7 @@ StgByteArray cmd;
ghc_errstr = "internal error (process neither exited nor signalled)";
return -1;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment