Does anyone know what might be causing the following error from a
program that uses System.system?
Fail: interrupted
Action: system
Reason: Interrupted system call
The shell command given to System.system runs and terminates with a
non-zero exit code (actually 8). I expected to bind the exit result
of the shell command and display it, but I did not expect the entire
program to terminate instead.
Unfortunately, small examples do not seem to trigger the problem.
The application in which I noticed the problem is 'hi', the Haskell
pseudo-interpreter. To demonstrate the behaviour, download and
build hmake-3.06 (http://www.haskell.org/hmake) with any ghc from
4.08.2 to 5.04.1. (I can't test 4.06 or earlier.) There is no need
to install anything: just type script/hi, then at the prompt enter
any Haskell expression that throws a runtime error, such as 4`mod`0.
The running "interpreter" is exited, whereas I expected the interpreter
to continue (and on some platforms it does!)
The fault is observed on Linux, but curiously not on Solaris, so maybe
it is environment-related?
Regards,
Malcolm
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs