[PATCH wayland] event-loop: fix conditional checking

Tiago Vignatti tiago.vignatti at intel.com
Tue May 8 04:58:02 PDT 2012


Introduced in:
    commit 80f4f0d5127ebc8d5e35969a29691cf61a79997d
    Author: Jonas Ådahl <jadahl at gmail.com>
    Date:   Wed Mar 21 10:31:24 2012 +0100

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



More information about the wayland-devel mailing list