aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-05-19 13:12:21 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-05-19 13:12:21 +0000
commit0a8812bdc588fd6e32f7c5ad97cfc9288b9822dc (patch)
treebde7df4ca9bbe31696e23b719c817acbe0e08868 /libbb
parent14aa06f29c22797bf8bf054afc25a6ef71718734 (diff)
downloadbusybox-0a8812bdc588fd6e32f7c5ad97cfc9288b9822dc.tar.gz
- replace _PATH_DEVNULL with bb_dev_null
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 @@
+/* vi: set sw=4 ts=4: */
/*
* Rexec program for system have fork() as vfork() with foreground option
*
@@ -11,19 +12,7 @@
*
* Modified for uClibc by Erik Andersen <andersee@debian.org>
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
#include <unistd.h>
@@ -46,7 +35,7 @@ void vfork_daemon_rexec(int nochdir, int noclose,
if (!nochdir)
chdir("/");
- if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
+ if (!noclose && (fd = open(bb_dev_null, O_RDWR, 0)) != -1) {
dup2(fd, STDIN_FILENO);
dup2(fd, STDOUT_FILENO);
dup2(fd, STDERR_FILENO);