From: Wen Congyang Date: Thu, 9 Dec 2010 06:41:03 +0000 (+0800) Subject: correct the signal's name X-Git-Tag: v0.8.7~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85d5fb19b168b11b1c584de086d0983a04ad0722;p=thirdparty%2Flibvirt.git correct the signal's name The signal's name is wrong... Signed-off-by: Wen Congyang --- diff --git a/tools/console.c b/tools/console.c index c2971cf1b7..e12632055e 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: