summaryrefslogtreecommitdiff
path: root/initd/runsvc.c
diff options
context:
space:
mode:
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;
-}