* [PATCH] Set close-on-exec flag for datagram sockets
@ 2009-04-01 7:28 Yosuke Iwamatsu
0 siblings, 0 replies; only message in thread
From: Yosuke Iwamatsu @ 2009-04-01 7:28 UTC (permalink / raw)
To: xen-devel
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@ab.jp.nec.com>
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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-01 7:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-01 7:28 [PATCH] Set close-on-exec flag for datagram sockets Yosuke Iwamatsu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.