From 0dcf2c05f0580854b37223f18f809706c23bf093 Mon Sep 17 00:00:00 2001 From: Tom Goff Date: Fri, 29 Jan 2016 18:07:43 -0500 Subject: [PATCH] daemon: Make the UDP server socket close-on-exec. --- daemon/sbin/core-daemon | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/sbin/core-daemon b/daemon/sbin/core-daemon index c8d771a4..16b4dd91 100755 --- a/daemon/sbin/core-daemon +++ b/daemon/sbin/core-daemon @@ -1617,6 +1617,7 @@ def cored(cfg = None): sys.stdout.write("server started, listening on: %s:%s\n" % (host, port)) sys.stdout.flush() server.startudp((host,port)) + closeonexec(server.udpserver.fileno()) server.serve_forever() def cleanup():