Re: [PATCH] Restartable poll(2)

2005-01-17 Thread Alan Cox
On Llu, 2005-01-17 at 02:31, Naoaki Maeda wrote: > Hi, > > Does nobody think a system call is interrupted by SIGSTOP is > strange behaviour? Not really > According to the man page, both of poll(2) and select(2) can be > interrupted by signals, but select(2) interrupted by SIGSTOP is > automatica

Re: [PATCH] Restartable poll(2)

2005-01-16 Thread Naoaki Maeda
usec = 0; retval = select(1, &rfds, NULL, NULL, &tv); if (retval == -1) perror("select()"); else if (retval) printf("got data\n"); else printf("No data entered\n"); } From: