aboutsummaryrefslogtreecommitdiff
path: root/src/librc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/librc.c')
-rw-r--r--src/librc.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/librc.c b/src/librc.c
index 8c27b56a..b52329fc 100644
--- a/src/librc.c
+++ b/src/librc.c
@@ -603,22 +603,6 @@ static pid_t _exec_service (const char *service, const char *arg)
return (pid);
}
-int rc_waitpid (pid_t pid)
-{
- int status = 0;
- pid_t savedpid = pid;
- int retval = -1;
-
- errno = 0;
- while ((pid = waitpid (savedpid, &status, 0)) > 0) {
- if (pid == savedpid)
- retval = WIFEXITED (status) ? WEXITSTATUS (status) : EXIT_FAILURE;
- }
-
- return (retval);
-}
-librc_hidden_def(rc_waitpid)
-
pid_t rc_service_stop (const char *service)
{
if (rc_service_state (service) & RC_SERVICE_STOPPED)