mirror of
https://src.fedoraproject.org/rpms/virt-manager.git
synced 2025-07-16 17:14:53 +00:00
- Add patch to ignore fix crash on force-poweroff with serial console
(#470548)
This commit is contained in:
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
|
Name: virt-manager
|
||||||
Version: 0.6.0
|
Version: 0.6.0
|
||||||
Release: 6%{_extra_release}
|
Release: 7%{_extra_release}
|
||||||
Summary: Virtual Machine Manager
|
Summary: Virtual Machine Manager
|
||||||
|
|
||||||
Group: Applications/Emulators
|
Group: Applications/Emulators
|
||||||
@@ -26,6 +26,7 @@ Patch6: %{name}-%{version}-multiple-sound-dev.patch
|
|||||||
Patch7: %{name}-%{version}-vol-copy-popup.patch
|
Patch7: %{name}-%{version}-vol-copy-popup.patch
|
||||||
Patch8: %{name}-%{version}-connect-variable-typo.patch
|
Patch8: %{name}-%{version}-connect-variable-typo.patch
|
||||||
Patch9: %{name}-%{version}-fix-virt-type-desc.patch
|
Patch9: %{name}-%{version}-fix-virt-type-desc.patch
|
||||||
|
Patch10: %{name}-%{version}-ignore-sighup.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
# These two are just the oldest version tested
|
# These two are just the oldest version tested
|
||||||
@@ -104,6 +105,7 @@ management API.
|
|||||||
%patch7 -p1
|
%patch7 -p1
|
||||||
%patch8 -p1
|
%patch8 -p1
|
||||||
%patch9 -p1
|
%patch9 -p1
|
||||||
|
%patch10 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
@@ -193,6 +195,9 @@ fi
|
|||||||
%{_datadir}/dbus-1/services/%{name}.service
|
%{_datadir}/dbus-1/services/%{name}.service
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Dec 04 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.6.0-6
|
||||||
- Rebuild for Python 2.6
|
- Rebuild for Python 2.6
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user