aboutsummaryrefslogtreecommitdiff
path: root/src/pies.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2016-01-03 16:04:29 +0200
committerSergey Poznyakoff <gray@gnu.org>2016-01-03 16:04:29 +0200
commit82e4f424e9f4ed16f1521c5bd5df31e0f46ce555 (patch)
treea272a6c44aa2634604fb0bae9dc4475fe772a80d /src/pies.c
parent85f2fd8d2772506911e95c3e4a0cb2538594b274 (diff)
downloadpies-82e4f424e9f4ed16f1521c5bd5df31e0f46ce555.tar.gz
pies-82e4f424e9f4ed16f1521c5bd5df31e0f46ce555.tar.bz2
Minor changes
Diffstat (limited to 'src/pies.c')
-rw-r--r--src/pies.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pies.c b/src/pies.c
index bbbc367..e7c1a22 100644
--- a/src/pies.c
+++ b/src/pies.c
@@ -1937,7 +1937,7 @@ request_restart_components (size_t cc, char **cv)
for (i = 0; i < cc; i++)
argv[3 + i] = cv[i];
argv[3 + i] = NULL;
- execv (argv[0], argv);
+ execvp (argv[0], argv);
logmsg (LOG_ERR, "can't run piesctl: %s", strerror (errno));
exit (EX_OSFILE);
}
@@ -1952,7 +1952,7 @@ list_components (void)
argv[2] = (char*) pies_control_url ();
argv[3] = "list";
argv[4] = NULL;
- execv (argv[0], argv);
+ execvp (argv[0], argv);
logmsg (LOG_ERR, "can't run piesctl: %s", strerror (errno));
exit (EX_OSFILE);
}

Return to:

Send suggestions and report system problems to the System administrator.