Signal handling still buggy
Volker Stolz
stolz at I2.Informatik.RWTH-Aachen.DE
Mon Oct 9 08:07:49 EDT 2000
On Mon, Oct 09, 2000 at 01:42:45PM +0200, Volker Stolz wrote:
> It seems that in 4.08 & 4.08.1 signal handling still seems to be flawed:
I forgot to mention that this only happens when using job-control:
1) start the program
2) use Ctrl-Z to suspend
3) kill -USR1
4) fg to resume, sigUSR1-handler is invoked,
the programm still works(!)
5) sending another USR1 -- no matter if suspending or using another
shell to issue the kill ! -- will yield the hGetChar-error.
Conclusion: This only seems to happen when the program is suspended and
receives a signal (it seems any signal will do, I tried sigPIPE, too, in
step #3, for which I installed an ignore-handler). On receiving the 2nd
signal regardless of being still suspended or not the hGetChar fails.
--
Volker Stolz * stolz at i2.informatik.rwth-aachen.de * PGP + S/MIME
More information about the Glasgow-haskell-bugs
mailing list