patch applied (ghc-6.10/packages/process): Avoid vfork() bear traps
igloo at earth.li
Wed Mar 11 21:57:06 EDT 2009
Mon Mar 9 09:19:43 PDT 2009 Simon Marlow <marlowsd at gmail.com>
* Avoid vfork() bear traps
We can't call setIOManagerPipe() in the vfork() child, because the
change will be reflected in the parent too. Add a large warning to
I tried changing vfork() to fork(), but it seems that this leads to a
different problem: the fork() sometimes takes so long that it gets
repeatedly interrupted by the timer signal and never makes progress.
I could disable the timer for a while, but decided to back off and fix
the vfork() version instead.
M ./cbits/runProcess.c -4 +4
View patch online:
More information about the Cvs-libraries