X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=exec.c;h=2887cb29972b949f67bc4b4197652c8c8592b261;hb=e41d01cc826627128d739f9bc4a9b1340693200d;hp=b1f60faab79f2929584525ab5728860487a2d46a;hpb=00e72666c12061e55c020a706448fac5497ce940;p=dss.git diff --git a/exec.c b/exec.c index b1f60fa..2887cb2 100644 --- a/exec.c +++ b/exec.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003-2008 Andre Noll + * Copyright (C) 2003-2010 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -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; }