/*
- * 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 "gcc-compat.h"
#include "log.h"
-#include "error.h"
-#include "string.h"
+#include "err.h"
+#include "str.h"
#include "exec.h"
/**
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);
}
* Exec the command given as a command line.
*
* \param pid Will hold the pid of the created process upon return.
- * \param cmdline Holds the command and its arguments, seperated by spaces.
+ * \param cmdline Holds the command and its arguments, separated by spaces.
*
* This function uses fork/exec to create a new process.
*