This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH v3 01/21] nptl: Handle EPIPE on tst-cancel2
- From: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- To: libc-alpha at sourceware dot org
- Date: Mon, 14 Oct 2019 17:56:36 -0300
- Subject: [PATCH v3 01/21] nptl: Handle EPIPE on tst-cancel2
- References: <20191014205656.29834-1-adhemerval.zanella@linaro.org>
The SIGPIPE can be catched before SIGCANCEL, which makes write fail
and the thread return an non expected result.
Checked on x86_64-linux-gnu and powerpc64le-linux-gnu.
---
nptl/tst-cancel2.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/nptl/tst-cancel2.c b/nptl/tst-cancel2.c
index b22bd496a7..2df2c00578 100644
--- a/nptl/tst-cancel2.c
+++ b/nptl/tst-cancel2.c
@@ -73,9 +73,6 @@ do_test (void)
return 1;
}
- /* This will cause the write in the child to return. */
- close (fd[0]);
-
if (pthread_join (th, &r) != 0)
{
puts ("join failed");
--
2.17.1