]> git.puffer.fish Git - mirror/frr.git/commitdiff
ldpd: Fix shutdown 4498/head
authordturlupov <dturlupov@factor-ts.ru>
Tue, 11 Jun 2019 11:55:10 +0000 (14:55 +0300)
committerdturlupov <dturlupov@factor-ts.ru>
Tue, 11 Jun 2019 11:55:10 +0000 (14:55 +0300)
When we stopped ldpd, we get fatal error message from wait().
This commit fix it.

Signed-off-by: Dmitrii Turlupov <dturlupov@factor-ts.ru>
ldpd/ldpd.c

index 5aaa2ec3253d53a1a1c38e553d2b10dad166c70c..9fccb085ddb19fe6f7d391cd5e19774f3f1bd9f6 100644 (file)
@@ -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. */