7a69cc9
# HG changeset patch
7a69cc9
# User "Cole Robinson <crobinso@redhat.com>"
7a69cc9
# Date 1228753553 18000
7a69cc9
# Node ID fb3a203a72d7d0cedf0a499df3950a9187c282c5
7a69cc9
# Parent  d402778935079ead0d1e049efa026dd8d4bd5a51
7a69cc9
Ignore SIGHUP if we fork off, otherwise a dropped serial console kills the whole app. (bz 470548)
7a69cc9
7a69cc9
diff -r d40277893507 -r fb3a203a72d7 src/virt-manager.py.in
7a69cc9
--- a/src/virt-manager.py.in	Mon Dec 08 11:14:54 2008 -0500
7a69cc9
+++ b/src/virt-manager.py.in	Mon Dec 08 11:25:53 2008 -0500
7a69cc9
@@ -31,6 +31,7 @@
7a69cc9
 import logging.handlers
7a69cc9
 import threading
7a69cc9
 import traceback
7a69cc9
+import signal
7a69cc9
 from optparse import OptionParser, OptionValueError
7a69cc9
 
7a69cc9
 # These are substituted into code based on --prefix given to configure
7a69cc9
@@ -282,6 +283,9 @@
7a69cc9
         drop_tty()
7a69cc9
         drop_stdio()
7a69cc9
 
7a69cc9
+        # Ignore SIGHUP, otherwise a serial console closing drops the whole app
7a69cc9
+        signal.signal(signal.SIGHUP, signal.SIG_IGN)
7a69cc9
+
7a69cc9
     from virtManager.engine import vmmEngine
7a69cc9
     from virtManager.remote import vmmRemote
7a69cc9