Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora/Linux Management Tools (http://www.linux-archive.org/fedora-linux-management-tools/)
-   -   Ignore failures to kill the child console process (http://www.linux-archive.org/fedora-linux-management-tools/264559-ignore-failures-kill-child-console-process.html)

John Levon 03-17-2009 01:45 AM

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

Cole Robinson 03-18-2009 02:56 PM

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


All times are GMT. The time now is 12:53 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.