aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-05-19 13:12:21 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-05-19 13:12:21 +0000
commit7c2dd198789988caef731e16a693b373db59a369 (patch)
treebde7df4ca9bbe31696e23b719c817acbe0e08868 /libbb
parent41660a8f944ec19ea3cedbbc1be6ad10a5a43db3 (diff)
downloadbusybox-w32-7c2dd198789988caef731e16a693b373db59a369.tar.gz
busybox-w32-7c2dd198789988caef731e16a693b373db59a369.tar.bz2
busybox-w32-7c2dd198789988caef731e16a693b373db59a369.zip
- replace _PATH_DEVNULL with bb_dev_null
git-svn-id: svn://busybox.net/trunk/busybox@15133 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r--libbb/vfork_daemon_rexec.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/libbb/vfork_daemon_rexec.c b/libbb/vfork_daemon_rexec.c
index 80022b390..ffd9dc15e 100644
--- a/libbb/vfork_daemon_rexec.c
+++ b/libbb/vfork_daemon_rexec.c
@@ -1,3 +1,4 @@
1/* vi: set sw=4 ts=4: */
1/* 2/*
2 * Rexec program for system have fork() as vfork() with foreground option 3 * Rexec program for system have fork() as vfork() with foreground option
3 * 4 *
@@ -11,19 +12,7 @@
11 * 12 *
12 * Modified for uClibc by Erik Andersen <andersee@debian.org> 13 * Modified for uClibc by Erik Andersen <andersee@debian.org>
13 * 14 *
14 * This program is free software; you can redistribute it and/or modify 15 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
18 *
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 */ 16 */
28 17
29#include <unistd.h> 18#include <unistd.h>
@@ -46,7 +35,7 @@ void vfork_daemon_rexec(int nochdir, int noclose,
46 if (!nochdir) 35 if (!nochdir)
47 chdir("/"); 36 chdir("/");
48 37
49 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) { 38 if (!noclose && (fd = open(bb_dev_null, O_RDWR, 0)) != -1) {
50 dup2(fd, STDIN_FILENO); 39 dup2(fd, STDIN_FILENO);
51 dup2(fd, STDOUT_FILENO); 40 dup2(fd, STDOUT_FILENO);
52 dup2(fd, STDERR_FILENO); 41 dup2(fd, STDERR_FILENO);