On Mon, Apr 18, 2005 at 01:12:45AM +0100, ross@soi.city.ac.uk wrote:
First, on the forking. There is a vague note on http://cvs.haskell.org/Hugs/pages/libstatus.html about co-operative concurrency.
That page was a little out of date:
- System.Process is missing; the chief problem is Hugs's representation of handles. Perhaps not insuperable. - System.Posix.Process.forkProcess is probably approximately implementable, modulo problems with handles.
Can you elaborate a bit on what these problems are?
System.Process.Signals.installHandler requires execution of an arbitrary IO action at an arbitrary point in the program, and Hugs can't do pre-emption.
Ahh. OK. Actually, I am more interested in installing SIG_IGN for SIGPIPE. (That is, tell the system to ignore that signal.) That much should be doable, right? Thanks, John