aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/tst-cancel.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-04-11 21:29:54 +0000
committerUlrich Drepper <drepper@redhat.com>2001-04-11 21:29:54 +0000
commit95fe9d959f956c8b31a3bd8801ea9dfe475842a5 (patch)
treef12d85c19d5e186d8771e586d192b030efe0a641 /linuxthreads/tst-cancel.c
parent8ee355155102ad7c2e473f179f4879c6e468f19e (diff)
downloadglibc-95fe9d959f956c8b31a3bd8801ea9dfe475842a5.tar
glibc-95fe9d959f956c8b31a3bd8801ea9dfe475842a5.tar.gz
glibc-95fe9d959f956c8b31a3bd8801ea9dfe475842a5.tar.bz2
glibc-95fe9d959f956c8b31a3bd8801ea9dfe475842a5.zip
Update.
2001-04-11 Ulrich Drepper <drepper@redhat.com> * cancel.c (_pthread_cleanup_push): Catch invalid __prev buffer and remove it. (_pthread_cleanup_push_defer): Likewise. * tst-cancel.c (main): Fix loop printing cleanup output.
Diffstat (limited to 'linuxthreads/tst-cancel.c')
-rw-r--r--linuxthreads/tst-cancel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linuxthreads/tst-cancel.c b/linuxthreads/tst-cancel.c
index da70d1278f..75d6c0de66 100644
--- a/linuxthreads/tst-cancel.c
+++ b/linuxthreads/tst-cancel.c
@@ -142,7 +142,7 @@ main (void)
while (1)
{
ssize_t n = read (fd, buf, sizeof buf);
- if (n < 0)
+ if (n <= 0)
break;
write (STDOUT_FILENO, buf, n);
}