]> git.tuebingen.mpg.de Git - dss.git/blobdiff - exec.c
Move check for low disk space to try_to_free_disk_space().
[dss.git] / exec.c
diff --git a/exec.c b/exec.c
index b1f60faab79f2929584525ab5728860487a2d46a..a5d0cd08f34fee97921a139bef766d70191aaa69 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2003-2008 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2003-2009 Andre Noll <maan@systemlinux.org>
  *
  * 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;
        }