]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: don't exit when socket is not created 9208/head
authorIgor Ryzhov <iryzhov@nfware.com>
Tue, 27 Jul 2021 13:10:35 +0000 (16:10 +0300)
committermergify-bot <noreply@mergify.io>
Wed, 28 Jul 2021 14:30:18 +0000 (14:30 +0000)
Let's be less radical. There's no reason to stop the whole daemon when
there's a socket creation error in a single VRF. The user can always
restart this single VRF to retry to create a socket.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
(cherry picked from commit 95d7a42a1adb441741723e956004a12033164c1d)

ospfd/ospf_network.c

index 00fbdc21a1dff4721f5f425f8d508865454b2691..be06afe532620e162dbde3d4bc82809ce34df9ae 100644 (file)
@@ -190,7 +190,7 @@ int ospf_sock_init(struct ospf *ospf)
                        flog_err(EC_LIB_SOCKET,
                                 "ospf_read_sock_init: socket: %s",
                                 safe_strerror(errno));
-                       exit(1);
+                       return -1;
                }
 
 #ifdef IP_HDRINCL