mirror of
https://github.com/torvalds/linux.git
synced 2024-09-26 18:03:17 +00:00
03a7beb55b
Enhanced epoll_ctl to support EPOLL_CTL_DISABLE, which disables an epoll item. If epoll_ctl doesn't return -EBUSY in this case, it is then safe to delete the epoll item in a multi-threaded environment. Also added a new test_epoll self- test app to both demonstrate the need for this feature and test it. Signed-off-by: Paton J. Lewis <palewis@adobe.com> Cc: Alexander Viro <viro@zeniv.linux.org.uk> Cc: Jason Baron <jbaron@redhat.com> Cc: Paul Holland <pholland@adobe.com> Cc: Davide Libenzi <davidel@xmailserver.org> Cc: Michael Kerrisk <mtk.manpages@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
12 lines
137 B
Makefile
12 lines
137 B
Makefile
# Makefile for epoll selftests
|
|
|
|
all: test_epoll
|
|
%: %.c
|
|
gcc -pthread -g -o $@ $^
|
|
|
|
run_tests: all
|
|
./test_epoll
|
|
|
|
clean:
|
|
$(RM) test_epoll
|