[Haskell-cafe] exitFailure under forkProcess

Simon Marlow simonmar at microsoft.com
Wed Oct 27 06:53:55 EDT 2004


On 26 October 2004 22:29, John Goerzen wrote:

> Hello,
> 
> I'm having a little weird situation here.
> 
> Whenever I call exitFailure under forkProcess, I get:
> 
> (progname): forkProcess: uncaught exception
> 
> Test program:
> 
> import System.Exit
> import System.Posix.Process
> main = forkProcess exitFailure

That's a bug, and I've just fixed it.  The problem was that we weren't
wrapping the child process in the usual default exception handler which
catches ExitException and actually performs the exit.

Cheers,
	Simon


More information about the Haskell-Cafe mailing list