X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fsignalfd.c;h=1dabe4ee02fe93931ae741344405bee1daca3cd0;hb=61405fea92c42d072d9b8bd189689f1502a838af;hp=b07565c9438672015aa041e3fb57e4b01ca6e27c;hpb=34e51ce60a210094bd66cf0a75dd8512247618ca;p=karo-tx-linux.git diff --git a/fs/signalfd.c b/fs/signalfd.c index b07565c94386..1dabe4ee02fe 100644 --- a/fs/signalfd.c +++ b/fs/signalfd.c @@ -236,7 +236,7 @@ SYSCALL_DEFINE4(signalfd4, int, ufd, sigset_t __user *, user_mask, * anon_inode_getfd() will install the fd. */ ufd = anon_inode_getfd("[signalfd]", &signalfd_fops, ctx, - flags & (O_CLOEXEC | O_NONBLOCK)); + O_RDWR | (flags & (O_CLOEXEC | O_NONBLOCK))); if (ufd < 0) kfree(ctx); } else {