summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/daemon.c')
-rw-r--r--lib/libc/gen/daemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/daemon.c b/lib/libc/gen/daemon.c
index 0c490e5..4f6c2f3 100644
--- a/lib/libc/gen/daemon.c
+++ b/lib/libc/gen/daemon.c
@@ -62,12 +62,12 @@ daemon(nochdir, noclose)
if (!nochdir)
(void)chdir("/");
- if (!noclose && (fd = _libc_open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
+ if (!noclose && (fd = _open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
(void)dup2(fd, STDIN_FILENO);
(void)dup2(fd, STDOUT_FILENO);
(void)dup2(fd, STDERR_FILENO);
if (fd > 2)
- (void)_libc_close(fd);
+ (void)_close(fd);
}
return (0);
}
OpenPOWER on IntegriCloud