]> git.proxmox.com Git - mirror_frr.git/blobdiff - ldpd/ldpd.c
lib, zebra: add new MPLS zapi message with route replace semantics
[mirror_frr.git] / ldpd / ldpd.c
index 5aaa2ec3253d53a1a1c38e553d2b10dad166c70c..a6f0519bd72940330c1524ba0ff13ce3c6fab1ba 100644 (file)
@@ -236,6 +236,9 @@ main(int argc, char *argv[])
                "      --ctl_socket   Override ctl socket path\n"
                "  -n, --instance     Instance id\n");
 
+       /* set default instance (to differentiate ldpd socket from lde one */
+       init.instance = 1;
+
        while (1) {
                int opt;
 
@@ -447,7 +450,7 @@ ldpd_shutdown(void)
                        if (errno == EINTR)
                                continue;
                        /* No more processes were found. */
-                       if (errno != ECHILD)
+                       if (errno == ECHILD)
                                break;
 
                        /* Unhandled errno condition. */