From: Igor Ryzhov Date: Tue, 27 Jul 2021 13:10:35 +0000 (+0300) Subject: ospfd: don't exit when socket is not created X-Git-Tag: base_8.1~278^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=95d7a42a1adb441741723e956004a12033164c1d;p=matthieu%2Ffrr.git ospfd: don't exit when socket is not created 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 --- diff --git a/ospfd/ospf_network.c b/ospfd/ospf_network.c index 00fbdc21a1..be06afe532 100644 --- a/ospfd/ospf_network.c +++ b/ospfd/ospf_network.c @@ -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