eloop: fix signal creation
The previous fix incorrectly registered new signals always to the last found signal which is definitely incorrect. Therefore, we now correctly traverse the list and register new signals as new signals. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
0467a8fce5
commit
b9ce96941b
@ -1690,6 +1690,7 @@ int ev_eloop_register_signal_cb(struct ev_eloop *loop, int signum,
|
||||
sig = kmscon_dlist_entry(iter, struct ev_signal_shared, list);
|
||||
if (sig->signum == signum)
|
||||
break;
|
||||
sig = NULL;
|
||||
}
|
||||
|
||||
if (!sig) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user