/*
- * Copyright (C) 2003-2011 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2003-2011 Andre Noll <maan@tuebingen.mpg.de>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
#include "log.h"
#include "err.h"
#include "str.h"
+#include "exec.h"
/**
* Spawn a new process using execvp().
void dss_exec(pid_t *pid, const char *file, char *const *const args)
{
if ((*pid = fork()) < 0) {
- DSS_EMERG_LOG("fork error: %s\n", strerror(errno));
+ DSS_EMERG_LOG(("fork error: %s\n", strerror(errno)));
exit(EXIT_FAILURE);
}
if (*pid) /* parent */
signal(SIGTERM, SIG_DFL);
signal(SIGCHLD, SIG_DFL);
execvp(file, args);
- DSS_EMERG_LOG("execvp error: %s\n", strerror(errno));
+ DSS_EMERG_LOG(("execvp error: %s\n", strerror(errno)));
_exit(EXIT_FAILURE);
}