mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
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>
This commit is contained in:
parent
d8c0fca68d
commit
1a5cea7215
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user