(main): Fix loop printing cleanup output.
authordrepper <drepper>
Wed, 11 Apr 2001 21:24:23 +0000 (21:24 +0000)
committerdrepper <drepper>
Wed, 11 Apr 2001 21:24:23 +0000 (21:24 +0000)
linuxthreads/tst-cancel.c

index da70d12..75d6c0d 100644 (file)
@@ -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);
        }