[PATCH v3 01/21] nptl: Handle EPIPE on tst-cancel2
Adhemerval Zanella
adhemerval.zanella@linaro.org
Mon Oct 14 20:57:00 GMT 2019
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
More information about the Libc-alpha
mailing list