mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
xend: Set close-on-exec flag for datagram sockets
We need to close the socket on the child side when xend creates a child process such as qemu-dm. Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
This commit is contained in:
1 parent
c6d5b4e310
commit
c9a16ee02d
1 file changed
+2
@@ -317,6 +317,8 @@ class SocketDgramListener:
|
||||
|
||||
def main(self):
|
||||
try:
|
||||
fcntl.fcntl(self.sock.fileno(), fcntl.F_SETFD, fcntl.FD_CLOEXEC)
|
||||
|
||||
while True:
|
||||
try:
|
||||
data = self.sock.recv(BUFFER_SIZE)
|
||||
|
||||