diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2011-04-23 21:05:09 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-06-15 14:00:42 +0200 |
commit | 425803868468b8ca52c7aa7fb8fb8b81d866dc7f (patch) | |
tree | 131b8df2eaede5b55803d4d1442a79f252f4134c /libc/unistd/daemon.c | |
parent | 804ab2f72f974c15826df439fa0876756989b97c (diff) |
use open_not_cancel_2 instead of open_not_cancel
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/unistd/daemon.c')
-rw-r--r-- | libc/unistd/daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/unistd/daemon.c b/libc/unistd/daemon.c index 628df51b8..435d4f1ff 100644 --- a/libc/unistd/daemon.c +++ b/libc/unistd/daemon.c @@ -118,7 +118,7 @@ int daemon(int nochdir, int noclose) { struct STAT st; - if ((fd = open_not_cancel(_PATH_DEVNULL, O_RDWR, 0)) != -1 + if ((fd = open_not_cancel_2(_PATH_DEVNULL, O_RDWR)) != -1 && (__builtin_expect (FSTAT (fd, &st), 0) == 0)) { if (__builtin_expect (S_ISCHR (st.st_mode), 1) != 0) { |