]> git.karo-electronics.de Git - karo-tx-linux.git/commit
inotify: automatically restart syscalls
authorEric Paris <eparis@redhat.com>
Mon, 26 Mar 2012 17:07:59 +0000 (13:07 -0400)
committerEric Paris <eparis@redhat.com>
Mon, 26 Mar 2012 17:07:59 +0000 (13:07 -0400)
commit1aec9c0d718693553543349e92138033b0bcea4c
treede648450e627f4c6bee4bbc9b37be7ef4c18fe66
parentb8ce6165698c66c83691767a2eacd4a5ac8d30b1
inotify: automatically restart syscalls

We were mistakenly returning EINTR when we found an outstanding signal.
Instead we should returen ERESTARTSYS and allow the kernel to handle
things the right way.

Patch-from: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
fs/notify/inotify/inotify_user.c