]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
correct the signal's name
authorWen Congyang <wency@cn.fujitsu.com>
Thu, 9 Dec 2010 06:41:03 +0000 (14:41 +0800)
committerEric Blake <eblake@redhat.com>
Thu, 9 Dec 2010 19:03:11 +0000 (12:03 -0700)
The signal's name is wrong...

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
tools/console.c

index c2971cf1b7574f418c86c05095fb5301324f19be..e12632055e4d085a05a165f8ff9fcecfc2122b61 100644 (file)
@@ -365,10 +365,10 @@ int vshRunConsole(virDomainPtr dom, const char *devname)
     }
 
     /* Restore original signal handlers */
-    signal(SIGQUIT, old_sigpipe);
-    signal(SIGQUIT, old_sighup);
-    signal(SIGQUIT, old_sigint);
-    signal(SIGQUIT, old_sigterm);
+    signal(SIGPIPE, old_sigpipe);
+    signal(SIGHUP, old_sighup);
+    signal(SIGINT, old_sigint);
+    signal(SIGTERM, old_sigterm);
     signal(SIGQUIT, old_sigquit);
 
 resettty: