summaryrefslogtreecommitdiff
path: root/ldpd/ldpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldpd/ldpd.c')
-rw-r--r--ldpd/ldpd.c2
1 files changed, 1 insertions, 1 deletions
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. */