mirror of
https://github.com/troglobit/libuev.git
synced 2026-11-17 19:31:18 +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
@@ -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