aboutsummaryrefslogtreecommitdiff
path: root/src/supervise-daemon
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-01-25 04:08:16 +0000
committerMike Frysinger <vapier@gentoo.org>2023-01-25 00:50:43 -0500
commitccc2b7114502b8cdf8add4fc2628f17f0e6df950 (patch)
treefd84ddcacab01844f219a9c12bb6408b4b809207 /src/supervise-daemon
parent78c0693c50447f8211d8e645363afa62cef8b2e4 (diff)
supervise-daemon: mark various functions as noreturn
For -Wmissing-noreturn.
Diffstat (limited to 'src/supervise-daemon')
-rw-r--r--src/supervise-daemon/supervise-daemon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/supervise-daemon/supervise-daemon.c b/src/supervise-daemon/supervise-daemon.c
index 9a1b6f55..06706590 100644
--- a/src/supervise-daemon/supervise-daemon.c
+++ b/src/supervise-daemon/supervise-daemon.c
@@ -212,7 +212,7 @@ static void cleanup(void)
free(changeuser);
}
-static void re_exec_supervisor(void)
+_noreturn static void re_exec_supervisor(void)
{
syslog(LOG_WARNING, "Re-executing for %s", svcname);
execlp("supervise-daemon", "supervise-daemon", svcname, "--reexec",
@@ -358,7 +358,7 @@ static pid_t exec_command(const char *cmd)
return pid;
}
-static void child_process(char *exec, char **argv)
+_noreturn static void child_process(char *exec, char **argv)
{
RC_STRINGLIST *env_list;
RC_STRING *env;
@@ -591,7 +591,7 @@ static void child_process(char *exec, char **argv)
eerrorx("%s: failed to exec `%s': %s", applet, exec,strerror(errno));
}
-static void supervisor(char *exec, char **argv)
+_noreturn static void supervisor(char *exec, char **argv)
{
FILE *fp;
char buf[2048];