uloop: use a waker for notifying sigchld and loop cancel events
authorYousong Zhou <yszhou4tech@gmail.com>
Thu, 9 Jun 2016 02:20:32 +0000 (10:20 +0800)
committerFelix Fietkau <nbd@nbd.name>
Wed, 15 Jun 2016 09:54:37 +0000 (11:54 +0200)
Fix a race condition when do_sigchld, uloop_cancelled were set just
before epoll_wait(timeout=-1), resulting the loop stuck in the syscall
without noticing the events just happened

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>

No differences found