]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/notify/fanotify/fanotify_user.c
make fanotify_read() restartable across signals
[net-next-2.6.git] / fs / notify / fanotify / fanotify_user.c
index fce66dfbf7d5a1a441d995d06033092092a399ad..063224812b7e607879bffeedd5b90f9c4967346f 100644 (file)
@@ -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;