aboutsummaryrefslogtreecommitdiff
path: root/src/librc.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-05 11:04:49 +0000
committerRoy Marples <roy@marples.name>2007-10-05 11:04:49 +0000
commit9ff89f8027fa904737f15d59e2c3b26950391933 (patch)
tree0f5edbb4e68125b994c2002a0311d9bad44725e5 /src/librc.c
parent3bfba57f5b2d89a5022fac932e46ca467a4b9f26 (diff)
Punt rc_waitpid
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)