Re: Strange behavior from poll() when interrupted by signal

2010-12-13 Thread Joachim Schipper
On Sun, Dec 12, 2010 at 01:00:17PM -0600, Yarin wrote: > As the documentation explains, when poll() is interrupted by a signal, it > should return -1/EINTR. > However, I'm getting a return indicating that all of the polling descriptors > are ready, but when I check their flags out, none of them a

Re: Strange behavior from poll() when interrupted by signal

2010-12-12 Thread Remco
Yarin wrote: > Hello, > > As the documentation explains, when poll() is interrupted by a signal, it > should return -1/EINTR. However, I'm getting a return indicating that all > of the polling descriptors are ready, but when I check their flags out, > none of them are ready. (Note that the same c

Strange behavior from poll() when interrupted by signal

2010-12-12 Thread Yarin
Hello, As the documentation explains, when poll() is interrupted by a signal, it should return -1/EINTR. However, I'm getting a return indicating that all of the polling descriptors are ready, but when I check their flags out, none of them are ready. (Note that the same code behaves as expected