[Hugs-users] No way to fork() ?

John Goerzen jgoerzen at complete.org
Mon Apr 18 11:48:38 EDT 2005


On Mon, Apr 18, 2005 at 01:12:45AM +0100, ross at 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



More information about the Hugs-Users mailing list