]> Pileus Git - ~andy/linux/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>
Tue, 11 Dec 2012 18:44:37 +0000 (13:44 -0500)
commit1ca39ab9d21ac93f94b9e3eb364ea9a5cf2aba06
treeb29442cfe30bf48bc2de777ac438604fa3a5ddaa
parent8b99c3ccf735a2294c7842d236caa42e543e2c95
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