X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=exec.c;h=d9f5b1b6f6838b4800b4310300e07b89a535d225;hp=b1f60faab79f2929584525ab5728860487a2d46a;hb=f9af4b1114a1a9b3b88a7d89985220ff586b5ef1;hpb=cfdc28028a7a55a1f9e14ff3d2e34273ef32e6a6 diff --git a/exec.c b/exec.c index b1f60fa..d9f5b1b 100644 --- a/exec.c +++ b/exec.c @@ -48,7 +48,7 @@ int dss_exec(pid_t *pid, const char *file, char *const *const args, int *fds) goto err_out; if (!fds[0] || !fds[1] || !fds[2]) { ret = -E_NULL_OPEN; - null = open("/dev/null", O_RDONLY); + null = open("/dev/null", O_RDWR); if (null < 0) goto err_out; }