Re: SA_NODEFER and signal nesting

2002-01-06 Thread Fernando P. Schapachnik
Terry Lambert wrote: > Yes. Signals are persistant conditions, not events. Aha... That explains it. > When you get the first SIGIO, set a flag (volatile) in the > signal handler. In your main loop, check for the flag, and > if it is present, use poll/select to verify that there is > data pend

Re: SA_NODEFER and signal nesting

2002-01-05 Thread Terry Lambert
"Fernando P. Schapachnik" wrote: > I'm trying to do Async I/O using O_ASYNC on sockets and handling > SIGIO. My testing shows that even if I unblock SIGIO at the begining of the > handler the kernel only delivers one level of nested signals. Ie: while the > first SIGIO is being handled a s

SA_NODEFER and signal nesting

2002-01-05 Thread Fernando P. Schapachnik
Hello: I'm trying to do Async I/O using O_ASYNC on sockets and handling SIGIO. My testing shows that even if I unblock SIGIO at the begining of the handler the kernel only delivers one level of nested signals. Ie: while the first SIGIO is being handled a second might arrive, but a third de