mirror of
https://github.com/troglobit/libuev.git
synced 2026-10-12 10:02:22 +00:00
Signal handlers require signo to be public
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -68,11 +68,6 @@ struct uev;
|
||||
int timeout; \
|
||||
int period; \
|
||||
} t; \
|
||||
\
|
||||
/* Signal watchers */ \
|
||||
struct { \
|
||||
int signo; \
|
||||
} s; \
|
||||
} u; \
|
||||
\
|
||||
/* Watcher type */ \
|
||||
|
||||
@@ -87,7 +87,7 @@ int uev_signal_set(uev_t *w, int signo)
|
||||
}
|
||||
|
||||
/* Remember for callbacks and start/stop */
|
||||
w->u.s.signo = signo;
|
||||
w->signo = signo;
|
||||
|
||||
/* Handle stopped signal watchers */
|
||||
if (w->fd < 0) {
|
||||
@@ -129,7 +129,7 @@ int uev_signal_start(uev_t *w)
|
||||
if (-1 != w->fd)
|
||||
uev_signal_stop(w);
|
||||
|
||||
return uev_signal_set(w, w->u.s.signo);
|
||||
return uev_signal_set(w, w->signo);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user