- Add patch to ignore fix crash on force-poweroff with serial console
(#470548)
This commit is contained in:
parent
6ac2510a98
commit
7a69cc9d0f
28
virt-manager-0.6.0-ignore-sighup.patch
Normal file
28
virt-manager-0.6.0-ignore-sighup.patch
Normal file
@ -0,0 +1,28 @@
|
||||
# HG changeset patch
|
||||
# User "Cole Robinson <crobinso@redhat.com>"
|
||||
# Date 1228753553 18000
|
||||
# Node ID fb3a203a72d7d0cedf0a499df3950a9187c282c5
|
||||
# Parent d402778935079ead0d1e049efa026dd8d4bd5a51
|
||||
Ignore SIGHUP if we fork off, otherwise a dropped serial console kills the whole app. (bz 470548)
|
||||
|
||||
diff -r d40277893507 -r fb3a203a72d7 src/virt-manager.py.in
|
||||
--- a/src/virt-manager.py.in Mon Dec 08 11:14:54 2008 -0500
|
||||
+++ b/src/virt-manager.py.in Mon Dec 08 11:25:53 2008 -0500
|
||||
@@ -31,6 +31,7 @@
|
||||
import logging.handlers
|
||||
import threading
|
||||
import traceback
|
||||
+import signal
|
||||
from optparse import OptionParser, OptionValueError
|
||||
|
||||
# These are substituted into code based on --prefix given to configure
|
||||
@@ -282,6 +283,9 @@
|
||||
drop_tty()
|
||||
drop_stdio()
|
||||
|
||||
+ # Ignore SIGHUP, otherwise a serial console closing drops the whole app
|
||||
+ signal.signal(signal.SIGHUP, signal.SIG_IGN)
|
||||
+
|
||||
from virtManager.engine import vmmEngine
|
||||
from virtManager.remote import vmmRemote
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
Name: virt-manager
|
||||
Version: 0.6.0
|
||||
Release: 6%{_extra_release}
|
||||
Release: 7%{_extra_release}
|
||||
Summary: Virtual Machine Manager
|
||||
|
||||
Group: Applications/Emulators
|
||||
@ -26,6 +26,7 @@ Patch6: %{name}-%{version}-multiple-sound-dev.patch
|
||||
Patch7: %{name}-%{version}-vol-copy-popup.patch
|
||||
Patch8: %{name}-%{version}-connect-variable-typo.patch
|
||||
Patch9: %{name}-%{version}-fix-virt-type-desc.patch
|
||||
Patch10: %{name}-%{version}-ignore-sighup.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
# These two are just the oldest version tested
|
||||
@ -104,6 +105,7 @@ management API.
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
%patch9 -p1
|
||||
%patch10 -p1
|
||||
|
||||
%build
|
||||
%configure
|
||||
@ -193,6 +195,9 @@ fi
|
||||
%{_datadir}/dbus-1/services/%{name}.service
|
||||
|
||||
%changelog
|
||||
* Tue Jan 20 2009 Mark McLoughlin <markmc@redhat.com> - 0.6.0-7
|
||||
- Add patch to ignore fix crash on force-poweroff with serial console (#470548)
|
||||
|
||||
* Thu Dec 04 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.6.0-6
|
||||
- Rebuild for Python 2.6
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user