On Monday, 23 July 2007 20:38, Agarwal, Lomesh wrote:I don't understand why the poll() system call returns to user space. poll() uses ERESTARTNOHAND, thus it should not return to user space.
> The other problem I am facing that read from socket returns with ENODATA
> when resuming. any ideas?
It's of similar kind: the system call checks signal_pending(current) and exit
with an error if that's true.
Well, I'm afraid we can't place try_to_freeze() in every system call that
does something like that ...