summaryrefslogtreecommitdiff
path: root/libc/unistd/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/unistd/daemon.c')
-rw-r--r--libc/unistd/daemon.c2
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) {