patch applied (ghc-6.10/packages/process): Avoid vfork() bear traps

Ian Lynagh 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
  Ignore-this: db3593f7e5db1db560842c729e47c551
  We can't call setIOManagerPipe() in the vfork() child, because the
  change will be reflected in the parent too.  Add a large warning to
  that effect.
  
  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:
http://darcs.haskell.org/ghc-6.10/packages/process/_darcs/patches/20090309161943-12142-6ae62e333826efc08d72ffa615d04fb82c0d2564.gz


More information about the Cvs-libraries mailing list