daemon: Make the UDP server socket close-on-exec.

This commit is contained in:
Tom Goff 2016-01-29 18:07:43 -05:00
parent 0853c95592
commit 0dcf2c05f0

View file

@ -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():