ia64/xen-unstable

changeset 19485:9c552123b130

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>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Apr 01 11:45:22 2009 +0100 (2009-04-01)
parents 2a6b32d1e705
children 5759a5766cca
files tools/python/xen/web/connection.py
line diff
     1.1 --- a/tools/python/xen/web/connection.py	Wed Apr 01 11:44:49 2009 +0100
     1.2 +++ b/tools/python/xen/web/connection.py	Wed Apr 01 11:45:22 2009 +0100
     1.3 @@ -317,6 +317,8 @@ class SocketDgramListener:
     1.4  
     1.5      def main(self):
     1.6          try:
     1.7 +            fcntl.fcntl(self.sock.fileno(), fcntl.F_SETFD, fcntl.FD_CLOEXEC)
     1.8 +
     1.9              while True:
    1.10                  try:
    1.11                      data = self.sock.recv(BUFFER_SIZE)