mirror of
https://github.com/troglobit/finit.git
synced 2026-11-02 13:20:32 +00:00
Initial conversion to use libuEv for all event handling.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
0669a9cb81
commit
425cd17e57
9 files changed
+91
-127
No files matched your search
@@ -362,9 +362,8 @@ static void restart_any_lost_procs(void)
|
||||
}
|
||||
}
|
||||
|
||||
void svc_monitor(void)
|
||||
void svc_monitor(pid_t lost)
|
||||
{
|
||||
pid_t lost;
|
||||
svc_t *svc;
|
||||
|
||||
if (was_stopped && !is_norespawn()) {
|
||||
@@ -373,10 +372,6 @@ void svc_monitor(void)
|
||||
return;
|
||||
}
|
||||
|
||||
lost = waitpid(-1, NULL, WNOHANG);
|
||||
if (lost < 1)
|
||||
return;
|
||||
|
||||
if (fexist(SYNC_SHUTDOWN) || lost <= 1)
|
||||
return;
|
||||
|
||||
|
||||
Reference in new issue
Block a user