mirror of
https://github.com/troglobit/libuev.git
synced 2026-11-10 16:31:08 +00:00
Signal handlers require signo to be public
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
e5bc49a8e6
commit
7e38c11b87
3 files changed
+3
-7
No files matched your search
@@ -68,11 +68,6 @@ struct uev;
|
|||||||
int timeout; \
|
int timeout; \
|
||||||
int period; \
|
int period; \
|
||||||
} t; \
|
} t; \
|
||||||
\
|
|
||||||
/* Signal watchers */ \
|
|
||||||
struct { \
|
|
||||||
int signo; \
|
|
||||||
} s; \
|
|
||||||
} u; \
|
} u; \
|
||||||
\
|
\
|
||||||
/* Watcher type */ \
|
/* Watcher type */ \
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ int uev_signal_set(uev_t *w, int signo)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Remember for callbacks and start/stop */
|
/* Remember for callbacks and start/stop */
|
||||||
w->u.s.signo = signo;
|
w->signo = signo;
|
||||||
|
|
||||||
/* Handle stopped signal watchers */
|
/* Handle stopped signal watchers */
|
||||||
if (w->fd < 0) {
|
if (w->fd < 0) {
|
||||||
@@ -129,7 +129,7 @@ int uev_signal_start(uev_t *w)
|
|||||||
if (-1 != w->fd)
|
if (-1 != w->fd)
|
||||||
uev_signal_stop(w);
|
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