projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c502332
)
exec.c: Open /dev/null r/w.
author
Andre Noll
<maan@systemlinux.org>
Wed, 22 Oct 2008 09:28:15 +0000
(11:28 +0200)
committer
Andre Noll
<maan@systemlinux.org>
Wed, 22 Oct 2008 09:28:15 +0000
(11:28 +0200)
Just to prevent external programs from getting confused when they write
to fd 1 or 2.
exec.c
patch
|
blob
|
history
diff --git
a/exec.c
b/exec.c
index
86362c3
..
ca59f03
100644
(file)
--- a/
exec.c
+++ b/
exec.c
@@
-37,7
+37,7
@@
static int para_exec(pid_t *pid, const char *file, char *const *const args, int
if (fds[2] > 0 && pipe(err) < 0)
goto err_out;
if (!fds[0] || !fds[1] || !fds[2]) {
- ret = para_open("/dev/null", O_RD
ONLY
, 42);
+ ret = para_open("/dev/null", O_RD
WR
, 42);
if (ret < 0)
goto err_out;
null = ret;