diff options
author | Lino Sanfilippo <LinoSanfilippo@gmx.de> | 2010-10-29 06:06:42 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2010-10-30 14:07:35 -0400 |
commit | 1a5cea7215f7c6bd3c960d7b44e864f3a73d1ad4 (patch) | |
tree | d8bdd846e5ef83c1707eaf9e9040705d80869260 /fs/notify | |
parent | d8c0fca68da25ca3df534dfb12ce628675c828e4 (diff) |
make fanotify_read() restartable across signals
In fanotify_read() return -ERESTARTSYS instead of -EINTR to
make read() restartable across signals (BSD semantic).
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs/notify')
-rw-r--r-- | fs/notify/fanotify/fanotify_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/notify/fanotify/fanotify_user.c b/fs/notify/fanotify/fanotify_user.c index fce66dfbf7d5..063224812b7e 100644 --- a/fs/notify/fanotify/fanotify_user.c +++ b/fs/notify/fanotify/fanotify_user.c | |||
@@ -330,7 +330,7 @@ static ssize_t fanotify_read(struct file *file, char __user *buf, | |||
330 | ret = -EAGAIN; | 330 | ret = -EAGAIN; |
331 | if (file->f_flags & O_NONBLOCK) | 331 | if (file->f_flags & O_NONBLOCK) |
332 | break; | 332 | break; |
333 | ret = -EINTR; | 333 | ret = -ERESTARTSYS; |
334 | if (signal_pending(current)) | 334 | if (signal_pending(current)) |
335 | break; | 335 | break; |
336 | 336 | ||