+/*
+ * Copyright (C) 2003-2009 Andre Noll <maan@systemlinux.org>
+ *
+ * Licensed under the GPL v2. For licencing details see COPYING.
+ */
+
/** \file exec.c Helper functions for spawning new processes. */
#include <string.h>
#include "gcc-compat.h"
+#include "log.h"
#include "error.h"
#include "string.h"
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;
}
close(null);
return 1;
err_out:
- make_err_msg("failed to exec %s", file);
+ DSS_ERROR_LOG("failed to exec %s\n", file);
if (err[0] >= 0)
close(err[0]);
if (err[1] >= 0)