[libvirt] [PATCH] correct the signal's name
Eric Blake
eblake at redhat.com
Thu Dec 9 19:07:09 UTC 2010
On 12/08/2010 11:41 PM, Wen Congyang wrote:
> 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);
That's an embarrassing copy and paste, which has been there since 2007.
ACK and pushed.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20101209/a6aa135d/attachment-0001.sig>
More information about the libvir-list
mailing list