diff options
Diffstat (limited to 'linuxthreads/tst-cancel.c')
-rw-r--r-- | linuxthreads/tst-cancel.c | 2 |
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); } |