X-Git-Url: http://bbs.cooldavid.org/git/?a=blobdiff_plain;f=fs%2Fnotify%2Ffanotify%2Ffanotify_user.c;h=063224812b7e607879bffeedd5b90f9c4967346f;hb=1a5cea7215f7c6bd3c960d7b44e864f3a73d1ad4;hp=fce66dfbf7d5a1a441d995d06033092092a399ad;hpb=d8c0fca68da25ca3df534dfb12ce628675c828e4;p=net-next-2.6.git diff --git a/fs/notify/fanotify/fanotify_user.c b/fs/notify/fanotify/fanotify_user.c index fce66dfbf7d..063224812b7 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;