From 43063ae7c2faab221c877defc1957364321a8fa2 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 5 May 2009 10:24:21 +0100 Subject: Fix compile on NetBSD and FreeBSD --- src/rc/runscript.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/rc/runscript.c b/src/rc/runscript.c index 8e6b782a..cec7e01f 100644 --- a/src/rc/runscript.c +++ b/src/rc/runscript.c @@ -450,7 +450,8 @@ svc_exec(const char *arg1, const char *arg2) master_tty = -1; } - ret = WEXITSTATUS(rc_waitpid(service_pid)); + ret = rc_waitpid(service_pid); + ret = WEXITSTATUS(ret); if (ret != 0 && errno == ECHILD) /* killall5 -9 could cause this */ ret = 0; -- cgit v1.2.3