|
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.
0001-tail-avoid-infloop-with-c-on-dev-zero.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |