[Haskell] rawSystem unpredictable with signals
Udo Stenzel
u.stenzel at web.de
Thu Jul 6 10:09:43 EDT 2006
John Goerzen wrote:
> When I hit Ctrl-C while the child process is running, sometimes:
>
> 1) rawSystem returns ExitSuccess
>
> or
>
> 2) rawSystem raises an IOError saying the child terminated with a
> signal
>
> I am totally at a loss as to explain this difference in behavior. I
> would prefer it to choose option #2 always.
Could process #1 have caught SIGINT while process #2 didn't? If so, GHC
is not at fault, because wait() doesn't tell about caught signals.
Udo.
--
Lebensmittelskandal: Gene im Mais entdeckt!
(angeblich eine Schlagzeile aus der BILD)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org//pipermail/haskell/attachments/20060706/9e9705cd/attachment-0001.bin
More information about the Haskell
mailing list