diff options
-rw-r--r-- | src/monitor/monitor.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c index 7727d09b..bee27e8b 100644 --- a/src/monitor/monitor.c +++ b/src/monitor/monitor.c @@ -1202,6 +1202,7 @@ static void monitor_quit(struct tevent_context *ev, svc->name, svc->pid, strerror(error))); } + error = 0; do { errno = 0; pid = waitpid(svc->pid, &status, WNOHANG); |