mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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@xensource.com>
This commit is contained in:
1 parent
17d0f5bf16
commit
296749cb10
1 file changed
+3
-2
@@ -167,8 +167,9 @@ class Daemon:
|
||||
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)
|
||||
|
||||
|
||||