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:
emellor@leeni.uk.xensource.com committed 2005-12-13 00:10:19 +00:00
1 parent 17d0f5bf16
commit 296749cb10
1 file changed
+3 -2
+3 -2
View File
@@ -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)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.