
28 Apr
2010
28 Apr
'10
3:29 a.m.
On Wed, Apr 28, 2010 at 8:02 AM, Bryan O'Sullivan
On Tue, Apr 27, 2010 at 7:02 PM, Dimitry Golubovsky
wrote: This is probably about forkProcess rather than forkIO/forkOS, but why this limitation?
That's a standard Unix limitation. A child process is forked with one thread, so if the parent has multiple threads running, it's overwhelmingly likely that the child will be unable to execute correctly.
One problem used to be that the I/O manager would get killed but Simon Marlow fixed that. I think we should support forking, with some caveats, so that we can daemonize processes.