[PATCH wayland] event-loop: fix conditional checking

Kristian Høgsberg hoegsberg at gmail.com
Tue May 8 07:00:35 PDT 2012


On Tue, May 08, 2012 at 02:58:02PM +0300, Tiago Vignatti wrote:
> Introduced in:
>     commit 80f4f0d5127ebc8d5e35969a29691cf61a79997d
>     Author: Jonas Ådahl <jadahl at gmail.com>
>     Date:   Wed Mar 21 10:31:24 2012 +0100

Thanks, committed.

> Signed-off-by: Tiago Vignatti <tiago.vignatti at intel.com>
> ---
>  src/event-loop.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/event-loop.c b/src/event-loop.c
> index ee2eae5..a284dca 100644
> --- a/src/event-loop.c
> +++ b/src/event-loop.c
> @@ -293,7 +293,7 @@ wl_event_loop_add_signal(struct wl_event_loop *loop,
>  	sigemptyset(&mask);
>  	sigaddset(&mask, signal_number);
>  	fd = signalfd(-1, &mask, SFD_CLOEXEC);
> -	if (source->base.fd < 0) {
> +	if (fd < 0) {
>  		fprintf(stderr, "could not create fd to watch signal\n: %m");
>  		free(source);
>  		return NULL;
> -- 
> 1.7.9.5
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list