Skip to content
Snippets Groups Projects
Commit 9864d641 authored by rswindell's avatar rswindell
Browse files

Using new xpdev-defined _PATH_DEVNULL macro.

parent f853b398
Branches
Tags
No related merge requests found
......@@ -769,7 +769,7 @@ daemon(nochdir, noclose)
if (!nochdir)
(void)chdir("/");
if (!noclose && (fd = open("/dev/null", 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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment