From a0c49f50dba40885123ed93565326dc1fc883581 Mon Sep 17 00:00:00 2001 From: dturlupov Date: Tue, 11 Jun 2019 14:55:10 +0300 Subject: [PATCH] ldpd: Fix shutdown When we stopped ldpd, we get fatal error message from wait(). This commit fix it. Signed-off-by: Dmitrii Turlupov --- ldpd/ldpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldpd/ldpd.c b/ldpd/ldpd.c index 5aaa2ec325..9fccb085dd 100644 --- a/ldpd/ldpd.c +++ b/ldpd/ldpd.c @@ -447,7 +447,7 @@ ldpd_shutdown(void) if (errno == EINTR) continue; /* No more processes were found. */ - if (errno != ECHILD) + if (errno == ECHILD) break; /* Unhandled errno condition. */ -- 2.39.5