#2451: New signal-handling API
---------------------------------+------------------------------------------
Reporter: simonmar | Owner: simonmar
Type: proposal | Status: new
Priority: high | Milestone: 6.14.1
Component: libraries/unix | Version: 6.8.3
Keywords: | Testcase:
Blockedby: | Difficulty: Unknown
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Comment(by duncan):
Perhaps we can just use SIGCHLD as a notification. When we get a SIGCHLD
we can assume that there may be multiple children in a waitable state. We
can then call waitpid/waitid multiple times, using the WNOHANG flag so it
does not block, then we call it repeatedly until there are no more
children to wait for. If we want to avoid waiting for children that do not
belong to System.Process then we can use WNOWAIT first time and then call
it again if we find the PID was one our ours.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2451#comment:21>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs