Amigans Defender
Joined: 2006/11/17 22:40 Last Login
: Yesterday 23:24
From England
Group:
Registered Users Moderators
|
I was expecting newlib's waitselect() to work like the WaitSelect() in bsdsocket.library, but the Ctrl-C handling seems to be broken.
If I send a Ctrl-C to a task waiting in waitselect() using netshutdown, the task just goes **BREAK and everything freezes because Intuition or something gets upset.
WaitSelect(), in contrast, returns -1 on a Ctrl-C so it can be caught by the application.
Usually I'll Wait() on a SIGBREAKF_CTRLC, but adding that to the signal mask in waitselect() just causes a spurious Ctrl-C to be received.
Any suggestions how to work around this? Or does it need fixing in newlib?
|