]> Git Repo - linux.git/commit
do_poll: return -EINTR when signalled
authorOleg Nesterov <[email protected]>
Wed, 17 Oct 2007 06:26:18 +0000 (23:26 -0700)
committerLinus Torvalds <[email protected]>
Wed, 17 Oct 2007 15:42:48 +0000 (08:42 -0700)
commit9bf084f70ffde6521d113593b89461a5bd2a303b
treeea62a8c9c54d0f702e73e9fa6e6c8699106ab892
parent252e5725cfb55a89e54888317856903fef9d5031
do_poll: return -EINTR when signalled

do_poll() checks signal_pending() but returns 0 when interrupted.  This means
the caller has to check signal_pending() again.

Change it to return -EINTR when signal_pending() and count == 0.

Signed-off-by: Oleg Nesterov <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Davide Libenzi <[email protected]>
Cc: Vadim Lobanov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/select.c
This page took 0.05125 seconds and 4 git commands to generate.