X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=exec.c;h=d9f5b1b6f6838b4800b4310300e07b89a535d225;hb=d184cc0fa0368ca089b1ae6f2162ccfc224bf28c;hp=164feb294be62820d10c32d30d4dc42a55efda0b;hpb=defca4768aa9b02fca97b63159dd261e4871a3ce;p=dss.git diff --git a/exec.c b/exec.c index 164feb2..d9f5b1b 100644 --- a/exec.c +++ b/exec.c @@ -1,3 +1,9 @@ +/* + * Copyright (C) 2003-2008 Andre Noll + * + * Licensed under the GPL v2. For licencing details see COPYING. + */ + /** \file exec.c Helper functions for spawning new processes. */ #include @@ -42,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; }