diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2017-10-30 18:21:39 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2017-10-30 18:21:39 -0500 |
commit | a3d1c8a0e7d5586be13e2cd9b5029fd729bc1594 (patch) | |
tree | 92c745c6701d58f75c03b378e18695a8211f4199 | |
parent | 913b2ca53771742385d5c69164aefcaab634f012 (diff) |
fix issue with --reexec call
-rw-r--r-- | src/rc/supervise-daemon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rc/supervise-daemon.c b/src/rc/supervise-daemon.c index 3989cbc7..f3f51ff0 100644 --- a/src/rc/supervise-daemon.c +++ b/src/rc/supervise-daemon.c @@ -162,7 +162,8 @@ static void cleanup(void) static void re_exec(void) { syslog(LOG_WARNING, "Re-executing for %s", svcname); - execlp("supervise-daemon", "supervise-daemon", "--reexec", (char *) NULL); + execlp("supervise-daemon", "supervise-daemon", svcname, "--reexec", + (char *) NULL); syslog(LOG_ERR, "Unable to execute supervise-daemon: %s", strerror(errno)); exit(EXIT_FAILURE); |