FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora/Linux Management Tools

 
 
LinkBack Thread Tools
 
Old 03-17-2009, 01:45 AM
John Levon
 
Default Ignore failures to kill the child console process

# HG changeset patch
# User John Levon <john.levon@sun.com>
# Date 1237257954 25200
# Node ID 0eeb1929a03b7667bffe55fed53f9546f81c736e
# Parent 7e7e8034601323d1b4f21314e0ccf520e25d51b6
Ignore failures to kill the child console process

For example, it may have quit already.

Signed-off-by: John Levon <john.levon@sun.com>

diff --git a/virtinst/Guest.py b/virtinst/Guest.py
--- a/virtinst/Guest.py
+++ b/virtinst/Guest.py
@@ -772,7 +772,10 @@ class Guest(object):

def terminate_console(self):
if self._consolechild:
- os.kill(self._consolechild, signal.SIGKILL)
+ try:
+ os.kill(self._consolechild, signal.SIGKILL)
+ except:
+ pass

def _wait_for_domain(conn, name):
# sleep in .25 second increments until either a) we get running

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 03-18-2009, 02:56 PM
Cole Robinson
 
Default Ignore failures to kill the child console process

John Levon wrote:
> # HG changeset patch
> # User John Levon <john.levon@sun.com>
> # Date 1237257954 25200
> # Node ID 0eeb1929a03b7667bffe55fed53f9546f81c736e
> # Parent 7e7e8034601323d1b4f21314e0ccf520e25d51b6
> Ignore failures to kill the child console process
>
> For example, it may have quit already.
>
> Signed-off-by: John Levon <john.levon@sun.com>
>

Thanks, applied.

- Cole

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 

Thread Tools




All times are GMT. The time now is 05:22 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org