bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#70477: tail command does not hang on /dev/random


From: Paul Eggert
Subject: bug#70477: tail command does not hang on /dev/random
Date: Fri, 19 Apr 2024 21:52:20 -0700
User-agent: Mozilla Thunderbird

On 2024-04-19 11:40, Ionut Nicula wrote:
The following command hangs indefinitely, as expected:

         tail -c 4096 /dev/random

The following command immediately returns 4097 bytes, unexpectedly:

         tail -c 4097 /dev/random

Thanks for the bug report. Although the two commands should behave similarly, neither should loop: they should both output the requested number of random bytes. Similarly for /dev/zero. I installed the attached patch to do that.

Attachment: 0001-tail-avoid-infloop-with-c-on-dev-zero.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]