event-loop: fix conditional checking

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

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
This commit is contained in:
Tiago Vignatti 2012-05-08 14:58:02 +03:00 committed by Kristian Høgsberg
parent a73c91585e
commit a41fa8b3ec

View file

@ -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;