projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8c0fca
)
make fanotify_read() restartable across signals
author
Lino Sanfilippo
<LinoSanfilippo@gmx.de>
Fri, 29 Oct 2010 10:06:42 +0000
(12:06 +0200)
committer
Eric Paris
<eparis@redhat.com>
Sat, 30 Oct 2010 18:07:35 +0000
(14:07 -0400)
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
patch
|
blob
|
blame
|
history
diff --git
a/fs/notify/fanotify/fanotify_user.c
b/fs/notify/fanotify/fanotify_user.c
index fce66dfbf7d5a1a441d995d06033092092a399ad..063224812b7e607879bffeedd5b90f9c4967346f 100644
(file)
--- 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 = -E
INTR
;
+ ret = -E
RESTARTSYS
;
if (signal_pending(current))
break;