[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Don't try and close the pipe to the grandparent if it has already been closed



# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID fa5dddabda0cbf33c013dab77696e983ac5f45c4
# Parent  b0b9946ddc426e0e0fa8dee0e7ef7c684c1e4ce1
Don't try and close the pipe to the grandparent if it has already been closed
(i.e. we have restarted Xend).

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r b0b9946ddc42 -r fa5dddabda0c tools/python/xen/xend/server/SrvDaemon.py
--- a/tools/python/xen/xend/server/SrvDaemon.py Mon Dec 12 17:13:38 2005
+++ b/tools/python/xen/xend/server/SrvDaemon.py Tue Dec 13 00:10:19 2005
@@ -167,8 +167,9 @@
             while True:
                 pid = self.fork_pid()
                 if pid:
-                    os.close(w)
-                    w = False
+                    if w is not None:
+                        os.close(w)
+                        w = None
 
                     (_, status) = os.waitpid(pid, 0)
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.