From 95fe9d959f956c8b31a3bd8801ea9dfe475842a5 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 11 Apr 2001 21:29:54 +0000 Subject: Update. 2001-04-11 Ulrich Drepper * 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. --- linuxthreads/tst-cancel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linuxthreads/tst-cancel.c') diff --git a/linuxthreads/tst-cancel.c b/linuxthreads/tst-cancel.c index da70d12..75d6c0d 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); } -- cgit v1.1