path: root/tools
diff options
authorLinus Torvalds <torvalds@linux-foundation.org>2019-07-30 13:25:14 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2019-07-30 13:25:14 -0700
commit629f8205a6cc63d2e8e30956bad958a3507d018f (patch)
tree71ac716a6f940fd867e18572b55e298ac1ba474c /tools
parent0572d7668a58794059030b88945f78dfb94e3325 (diff)
parent30b692d3b390c6fe78a5064be0c4bbd44a41be59 (diff)
Merge tag 'for-linus-20190730' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux
Pull pidfd fixes from Christian Brauner: "This makes setting the exit_state in exit_notify() consistent after fixing the pidfd polling race pre-rc1. Related to the race fix, this adds a WARN_ON() to do_notify_pidfd() to catch any future exit_state races. Last, this removes an obsolete comment from the pidfd tests" * tag 'for-linus-20190730' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux: exit: make setting exit_state consistent pidfd: Add warning if exit_state is 0 during notification pidfd: remove obsolete comments from test
Diffstat (limited to 'tools')
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/testing/selftests/pidfd/pidfd_test.c b/tools/testing/selftests/pidfd/pidfd_test.c
index 7eaa8a3de262..b632965e60eb 100644
--- a/tools/testing/selftests/pidfd/pidfd_test.c
+++ b/tools/testing/selftests/pidfd/pidfd_test.c
@@ -339,13 +339,9 @@ static int test_pidfd_send_signal_syscall_support(void)
ret = sys_pidfd_send_signal(pidfd, 0, NULL, 0);
if (ret < 0) {
- /*
- * pidfd_send_signal() will currently return ENOSYS when
- * CONFIG_PROC_FS is not set.
- */
if (errno == ENOSYS)
- "%s test: pidfd_send_signal() syscall not supported (Ensure that CONFIG_PROC_FS=y is set)\n",
+ "%s test: pidfd_send_signal() syscall not supported\n",
ksft_exit_fail_msg("%s test: Failed to send signal\n",