Re: [PATCH] correct the signal's name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/08/2010 11:41 PM, Wen Congyang wrote:
> The signal's name is wrong...
> 
> Signed-off-by: Wen Congyang <wency@xxxxxxxxxxxxxx>
> 
> ---
>  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   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

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

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]