This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: linuxthreads tst-cancel4.c et al.
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Roland McGrath <roland at redhat dot com>
- Cc: Daniel Jacobowitz <drow at false dot org>, "David S. Miller" <davem at davemloft dot net>, libc-alpha at sources dot redhat dot com
- Date: Mon, 11 Apr 2005 22:49:40 +0200
- Subject: Re: linuxthreads tst-cancel4.c et al.
- References: <20050411202410.GA6429@nevyn.them.org> <200504112042.j3BKgUlf022074@magilla.sf.frob.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Apr 11, 2005 at 01:42:30PM -0700, Roland McGrath wrote:
> I haven't read over those tests. Is the need just for some syscall that
> will block? Or is it testing that write returns a proper short write count?
> If just the former, then there are easy ways to block. e.g., a pipe read
> with noone writing.
That part of the test is testing write syscall cancellation, so we need
a write syscall to whatever file descriptor that will block.
A pipe read with noone writing doesn't help us here, that's read syscall
blocking and that is tested in another part of the test.
Jakub