|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] xend: Set close-on-exec flag for datagram
# 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):
try:
+ fcntl.fcntl(self.sock.fileno(), fcntl.F_SETFD, fcntl.FD_CLOEXEC)
+
while True:
try:
data = self.sock.recv(BUFFER_SIZE)
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] xend: Set close-on-exec flag for datagram sockets,
Xen patchbot-unstable <=
|
|
|
|
|