summaryrefslogtreecommitdiffstats
path: root/ldpd
diff options
context:
space:
mode:
authordturlupov <dturlupov@factor-ts.ru>2019-06-11 13:55:10 +0200
committerdturlupov <dturlupov@factor-ts.ru>2019-06-11 13:55:10 +0200
commita0c49f50dba40885123ed93565326dc1fc883581 (patch)
tree2dde879a7e21b027e6b375c8dbf76f8f0f73be38 /ldpd
parentMore compiler cleanup (#4487) (diff)
downloadfrr-a0c49f50dba40885123ed93565326dc1fc883581.tar.xz
frr-a0c49f50dba40885123ed93565326dc1fc883581.zip
ldpd: Fix shutdown
When we stopped ldpd, we get fatal error message from wait(). This commit fix it. Signed-off-by: Dmitrii Turlupov <dturlupov@factor-ts.ru>
Diffstat (limited to 'ldpd')
-rw-r--r--ldpd/ldpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldpd/ldpd.c b/ldpd/ldpd.c
index 5aaa2ec32..9fccb085d 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. */