[libvirt] [PATCH] correct the signal's name

Wen Congyang wency at cn.fujitsu.com
Thu Dec 9 06:41:03 UTC 2010


The signal's name is wrong...

Signed-off-by: Wen Congyang <wency at cn.fujitsu.com>

---
 tools/console.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/console.c b/tools/console.c
index c2971cf..e126320 100644
--- a/tools/console.c
+++ b/tools/console.c
@@ -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:
-- 
1.7.1




More information about the libvir-list mailing list