aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/pidfd/Makefile
diff options
context:
space:
mode:
authorJoel Fernandes (Google) <joel@joelfernandes.org>2019-04-30 12:21:54 -0400
committerChristian Brauner <christian@brauner.io>2019-06-28 12:17:55 +0200
commit740378dc7834bc511ac1ecb2157696681d2a1d32 (patch)
tree9f1a2838263e8bfbe21efd563d3536a55101ce50 /tools/testing/selftests/pidfd/Makefile
parentpidfd: add polling support (diff)
downloadlinux-dev-740378dc7834bc511ac1ecb2157696681d2a1d32.tar.xz
linux-dev-740378dc7834bc511ac1ecb2157696681d2a1d32.zip
pidfd: add polling selftests
Other than verifying pidfd based polling, the tests make sure that wait semantics are preserved with the pidfd poll. Notably the 2 cases: 1. If a thread group leader exits while threads still there, then no pidfd poll notifcation should happen. 2. If a non-thread group leader does an execve, then the thread group leader is signaled to exit and is replaced with the execing thread as the new leader, however the parent is not notified in this case. Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org> Signed-off-by: Christian Brauner <christian@brauner.io>
Diffstat (limited to 'tools/testing/selftests/pidfd/Makefile')
-rw-r--r--tools/testing/selftests/pidfd/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/pidfd/Makefile b/tools/testing/selftests/pidfd/Makefile
index deaf8073bc06..4b31c14f273c 100644
--- a/tools/testing/selftests/pidfd/Makefile
+++ b/tools/testing/selftests/pidfd/Makefile
@@ -1,4 +1,4 @@
-CFLAGS += -g -I../../../../usr/include/
+CFLAGS += -g -I../../../../usr/include/ -lpthread
TEST_GEN_PROGS := pidfd_test