diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2021-07-27 15:10:35 +0200 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-07-27 15:10:35 +0200 |
commit | 95d7a42a1adb441741723e956004a12033164c1d (patch) | |
tree | cb1b1246d5145de588ef42737d3964502c6abb85 /ospfd | |
parent | Merge pull request #9166 from idryzhov/vtysh-enable (diff) | |
download | frr-95d7a42a1adb441741723e956004a12033164c1d.tar.xz frr-95d7a42a1adb441741723e956004a12033164c1d.zip |
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 <iryzhov@nfware.com>
Diffstat (limited to 'ospfd')
-rw-r--r-- | ospfd/ospf_network.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_network.c b/ospfd/ospf_network.c index 00fbdc21a..be06afe53 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 |