Fix compile on NetBSD and FreeBSD

This commit is contained in:
Roy Marples
2009-05-05 10:24:21 +01:00
parent e575b33047
commit 43063ae7c2
4 changed files with 7 additions and 2 deletions

View File

@@ -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;