ia64/xen-unstable

changeset 8329:fa5dddabda0c

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>
author emellor@leeni.uk.xensource.com
date Tue Dec 13 00:10:19 2005 +0000 (2005-12-13)
parents b0b9946ddc42
children 55d464295da3
files tools/python/xen/xend/server/SrvDaemon.py
line diff
     1.1 --- a/tools/python/xen/xend/server/SrvDaemon.py	Mon Dec 12 17:13:38 2005 +0000
     1.2 +++ b/tools/python/xen/xend/server/SrvDaemon.py	Tue Dec 13 00:10:19 2005 +0000
     1.3 @@ -167,8 +167,9 @@ class Daemon:
     1.4              while True:
     1.5                  pid = self.fork_pid()
     1.6                  if pid:
     1.7 -                    os.close(w)
     1.8 -                    w = False
     1.9 +                    if w is not None:
    1.10 +                        os.close(w)
    1.11 +                        w = None
    1.12  
    1.13                      (_, status) = os.waitpid(pid, 0)
    1.14