Skip to contentSkip to conversation

fix xend stop on Solaris

PATCH New John Levon 1 participant 1 message Jan 5, 2007

lore
Share & tools
lore

John Levon

author
#0 lore raw

PATCH 1/1 fix xend stop on Solaris

Please apply to 3.0.4 and unstable

thanks
john

# HG changeset patch
# User [email protected]
# Date 1167957805 28800
# Node ID 025df834c81ab92d6dc21942beabfab11b787671
# Parent 8ddb59abd146760944632febdd0ba38c5f1d163a
Fix xend stop if we're run directly instead of via the caretaker parent.

tools/python/xen/xend/server/SrvDaemon.py +1 -1
@@ -203,7 +203,7 @@ class Daemon:
 
                 if not osdep.xend_autorestart:
                     self.run(os.fdopen(w, 'w'))
-                    break
+                    os._exit(0)
 
                 pid = self.fork_pid()
                 if pid: