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.
On Mon, 11 Apr 2005 13:42:30 -0700
Roland McGrath <roland@redhat.com> 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.
It is specifically testing cancellation on the write() system
call, so it really does need to specifically do a blocking
write(). As others have mentioned, some other cancellation
test cases have the same exact problem.