daemon: Make the UDP server socket close-on-exec.
This commit is contained in:
parent
0853c95592
commit
0dcf2c05f0
1 changed files with 1 additions and 0 deletions
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue