[prev in list] [next in list] [prev in thread] [next in thread]
List: git-commits-head
Subject: make fanotify_read() restartable across signals
From: Linux Kernel Mailing List <linux-kernel () vger ! kernel ! org>
Date: 2010-10-30 18:59:14
Message-ID: 201010301859.o9UIxEgN014640 () hera ! kernel ! org
[Download RAW message or body]
Gitweb: http://git.kernel.org/linus/1a5cea7215f7c6bd3c960d7b44e864f3a73d1ad4
Commit: 1a5cea7215f7c6bd3c960d7b44e864f3a73d1ad4
Parent: d8c0fca68da25ca3df534dfb12ce628675c828e4
Author: Lino Sanfilippo <LinoSanfilippo@gmx.de>
AuthorDate: Fri Oct 29 12:06:42 2010 +0200
Committer: Eric Paris <eparis@redhat.com>
CommitDate: Sat Oct 30 14:07:35 2010 -0400
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>
---
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 fce66df..0632248 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,
ret = -EAGAIN;
if (file->f_flags & O_NONBLOCK)
break;
- ret = -EINTR;
+ ret = -ERESTARTSYS;
if (signal_pending(current))
break;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic