- replace _PATH_DEVNULL with bb_dev_null

This commit is contained in:
Bernhard Reutner-Fischer
2006-05-19 13:12:21 +00:00
parent 14aa06f29c
commit 0a8812bdc5
3 changed files with 11 additions and 20 deletions

View File

@@ -7147,8 +7147,8 @@ forkchild(struct job *jp, union node *n, int mode)
ignoresig(SIGQUIT);
if (jp->nprocs == 0) {
close(0);
if (open(_PATH_DEVNULL, O_RDONLY) != 0)
sh_error("Can't open %s", _PATH_DEVNULL);
if (open(bb_dev_null, O_RDONLY) != 0)
sh_error("Can't open %s", bb_dev_null);
}
}
if (!oldlvl && iflag) {