On 12/08/2010 11:41 PM, Wen Congyang wrote:
> The signal's name is wrong...
> 
> Signed-off-by: Wen Congyang <we...@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);

That's an embarrassing copy and paste, which has been there since 2007.
 ACK and pushed.

-- 
Eric Blake   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to