]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
cmdmon: don't require bound UDP socket
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 9 Jul 2019 12:48:42 +0000 (14:48 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 18 Jul 2019 11:35:54 +0000 (13:35 +0200)
Don't abort on start when no UDP socket could be opened/bound for
cmdmon. The Unix socket is more important and with the IP_FREEBIND
option this case was not caught anyway.

cmdmon.c

index 3b4277a30efc732994982c6086bfa5b484135109..79b77aa5ab4ed0e2712a78e73a35d986f8fdb985 100644 (file)
--- a/cmdmon.c
+++ b/cmdmon.c
@@ -313,14 +313,6 @@ CAM_Initialise(int family)
     sock_fd6 = -1;
 #endif
 
-  if (port_number && sock_fd4 < 0
-#ifdef FEAT_IPV6
-      && sock_fd6 < 0
-#endif
-      ) {
-    LOG_FATAL("Could not open any command socket");
-  }
-
   access_auth_table = ADF_CreateTable();
 
 }