Hi there.  Peering at the Posix stuff on process handling, I wrote the
following program:


import Posix

main
 = do   installHandler sigINT Ignore Nothing
        loop

loop = do putStr ""
          loop


This ought to loop forever (yup), ignoring any SIG_INT's (nup).  Is the
above fundamentally misconceived in some hideous way that I have failed
to spot?

Blocking and catching seem to work fine and as I'd expect, but I don't
see how to get much useful functionality from just those two, if Ignore
can't be persuaded to work.

Is this a bug in the posix lib, or is my admittedly sketchy notion of
handling Unix interrupts letting me down?

Slainte,
Alex.

Reply via email to