Issue 441 in xmonad: XMonad.Util.Run.safeSpawn does not uninstallSignalHandlers

Status: New Owner: ---- New issue 441 by dylan-go...@dylex.net: XMonad.Util.Run.safeSpawn does not uninstallSignalHandlers http://code.google.com/p/xmonad/issues/detail?id=441 I have run into programs that fail when run by safeSpawn but succeed with spawn. I tracked it down in one (python) and it seems to be due to uninstallSignalHandlers. When run by safeSpawn, the program reports errors from wait. Arguably applications should perhaps be more robust, but it seems worth fixing here.

Comment #1 on issue 441 by gwe...@gmail.com: XMonad.Util.Run.safeSpawn does not uninstallSignalHandlers http://code.google.com/p/xmonad/issues/detail?id=441 Have you tested that adding uninstalSignalHandlers fixes spawn?

Comment #2 on issue 441 by dylan-go...@dylex.net: XMonad.Util.Run.safeSpawn does not uninstallSignalHandlers http://code.google.com/p/xmonad/issues/detail?id=441 Yes, the program runs successfully using: io $ forkProcess $ do uninstallSignalHandlers _ <- createSession executeFile prog True args Nothing But fails without the uninstallSignalHandlers and createSession. (I haven't tried them separately, but based on the error, the former seems like the culprit.)

Updates: Status: Fixed Comment #3 on issue 441 by gwe...@gmail.com: XMonad.Util.Run.safeSpawn does not uninstallSignalHandlers http://code.google.com/p/xmonad/issues/detail?id=441 OK, I've pushed a version of that to darcs XMC. It *seems* to work here, but there are so many subtleties to Unix process stuff that I'm going to ask people to try it out on the ML.
participants (1)
-
codesite-noreply@google.com