[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] Set close-on-exec flag for datagram sockets
Set the 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@xxxxxxxxxxxxx> diff -r d5ddc782bc49 tools/python/xen/web/connection.py --- a/tools/python/xen/web/connection.py Mon Mar 30 16:48:26 2009 +0100 +++ b/tools/python/xen/web/connection.py Wed Apr 01 15:38:38 2009 +0900 @@ -317,6 +317,8 @@ def main(self): try: + fcntl.fcntl(self.sock.fileno(), fcntl.F_SETFD, fcntl.FD_CLOEXEC) + while True: try: data = self.sock.recv(BUFFER_SIZE) _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |