3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-04 02:18:49 +02:00

test-runner: add debug info for cmd being executed

This commit is contained in:
Denis Kenzior 2016-06-09 09:55:33 -05:00
parent d9848730ed
commit b3abd2f7ca

View File

@ -326,10 +326,15 @@ static pid_t execute_program(char *argv[], bool wait)
{ {
int status; int status;
pid_t pid, child_pid; pid_t pid, child_pid;
char *str;
if (!argv[0]) if (!argv[0])
return -1; return -1;
str = l_strjoinv(argv, ' ');
l_debug("Executing: %s", str);
l_free(str);
child_pid = fork(); child_pid = fork();
if (child_pid < 0) { if (child_pid < 0) {
l_error("Failed to fork new process"); l_error("Failed to fork new process");