Fix seccomp test on bullhead
Note that this does not make the test pass (see other fix)
but does remove another libc error message
Test: Run on bullhead and sailfish - libc warning is now gone
Bug: 36656103
(cherry picked from commit 9ec051c31fd967c1b0ddcccb7e0cc2bcf61f90ca)
Change-Id: I37ea6350c344050119a01466c6215400b103de8c
diff --git a/linux/seccomp_bpf.c b/linux/seccomp_bpf.c
index 6f5b786..949ac25 100644
--- a/linux/seccomp_bpf.c
+++ b/linux/seccomp_bpf.c
@@ -1803,8 +1803,10 @@
/* Ensure diverging sibling failed to call prctl. */
pthread_join(self->sibling[0].tid, &status);
EXPECT_EQ(SIBLING_EXIT_FAILURE, (long)status);
+ self->sibling[0].tid = 0;
pthread_join(self->sibling[1].tid, &status);
EXPECT_EQ(SIBLING_EXIT_UNKILLED, (long)status);
+ self->sibling[1].tid = 0;
}
TEST_F(TSYNC, two_siblings_with_ancestor)