aboutsummaryrefslogtreecommitdiff
path: root/initd/runsvc.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-08-24 16:51:15 +0200
committerDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-08-24 21:17:31 +0200
commitec74e5bbee30381b1624ac2247e74fa29676c6e6 (patch)
tree3f4a357da081139f6ebfb77c0f85d3fe3f894ac4 /initd/runsvc.c
parent532f5e6819faadb394a0dfa6999ab80044ec7c69 (diff)
initd: restructure and merge service supervision code
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'initd/runsvc.c')
-rw-r--r--initd/runsvc.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/initd/runsvc.c b/initd/runsvc.c
index aba83b1..1b23cb6 100644
--- a/initd/runsvc.c
+++ b/initd/runsvc.c
@@ -49,18 +49,3 @@ pid_t runsvc(service_t *svc)
return pid;
}
-
-int runsvc_wait(service_t *svc)
-{
- pid_t ret, pid = runsvc(svc);
- int status;
-
- if (pid == -1)
- return EXIT_FAILURE;
-
- do {
- ret = waitpid(pid, &status, 0);
- } while (ret != pid);
-
- return WIFEXITED(status) ? WEXITSTATUS(status) : EXIT_FAILURE;
-}