From: John Levon Subject: [PATCH] fix xend stop on Solaris Date: Fri, 5 Jan 2007 01:09:36 +0000 Message-ID: <20070105010936.GA20061@totally.trollied.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Please apply to 3.0.4 and unstable thanks john # HG changeset patch # User john.levon@sun.com # Date 1167957805 28800 # Node ID 025df834c81ab92d6dc21942beabfab11b787671 # Parent 8ddb59abd146760944632febdd0ba38c5f1d163a Fix xend stop if we're run directly instead of via the caretaker parent. Signed-off-by: John Levon diff --git a/tools/python/xen/xend/server/SrvDaemon.py b/tools/python/xen/xend/server/SrvDaemon.py --- a/tools/python/xen/xend/server/SrvDaemon.py +++ b/tools/python/xen/xend/server/SrvDaemon.py @@ -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: