This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-changelog] [xen-unstable] xend: Set close-on-exec flag for datagram

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xend: Set close-on-exec flag for datagram sockets
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 07 Apr 2009 23:02:48 -0700
Delivery-date: Tue, 07 Apr 2009 23:06:25 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1238582722 -3600
# Node ID 9c552123b130afa2f6477bdf9ef5a00e709fcf0d
# Parent  2a6b32d1e7050ff6ca8f4b85c3d8f3f8a5fa2ef5
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@xxxxxxxxxxxxx>
 tools/python/xen/web/connection.py |    2 ++
 1 files changed, 2 insertions(+)

diff -r 2a6b32d1e705 -r 9c552123b130 tools/python/xen/web/connection.py
--- a/tools/python/xen/web/connection.py        Wed Apr 01 11:44:49 2009 +0100
+++ b/tools/python/xen/web/connection.py        Wed Apr 01 11:45:22 2009 +0100
@@ -317,6 +317,8 @@ class SocketDgramListener:
     def main(self):
+            fcntl.fcntl(self.sock.fileno(), fcntl.F_SETFD, fcntl.FD_CLOEXEC)
             while True:
                     data = self.sock.recv(BUFFER_SIZE)

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xend: Set close-on-exec flag for datagram sockets, Xen patchbot-unstable <=