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

Re: [libvirt] [PATCH] Bugfix: Check stdoutWatch before removing the handler.



On Wed, Aug 10, 2011 at 05:03:23PM +0200, Juerg Haefliger wrote:
> ---
>  tools/console.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/tools/console.c b/tools/console.c
> index 11087e5..171ebc9 100644
> --- a/tools/console.c
> +++ b/tools/console.c
> @@ -95,7 +95,7 @@ virConsoleShutdown(virConsolePtr con)
>          virStreamFree(con->st);
>      if (con->stdinWatch != -1)
>          virEventRemoveHandle(con->stdinWatch);
> -    if (con->stdinWatch != -1)
> +    if (con->stdoutWatch != -1)
>          virEventRemoveHandle(con->stdoutWatch);
>      con->stdinWatch = -1;
>      con->stdoutWatch = -1;
> -- 
> 1.7.4.1
> 
> --
> libvir-list mailing list
> libvir-list redhat com
> https://www.redhat.com/mailman/listinfo/libvir-list

ACK

Dave


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