From 425803868468b8ca52c7aa7fb8fb8b81d866dc7f Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 23 Apr 2011 21:05:09 +0200 Subject: use open_not_cancel_2 instead of open_not_cancel Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/unistd/daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc/unistd') 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) { -- cgit v1.2.3