Re: No way to fork() ?
John Goerzen <[email protected]> Mon, 18 Apr 2005 10:48:38 -0500
| Newsgroups | gmane.comp.lang.haskell.hugs.user |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Apr 18, 2005 at 01:12:45AM +0100, [email protected] 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