[Bug 276220] tty_disc canonical input processing: suprising behavior of the EOF cchar
Date: Tue, 09 Jan 2024 14:00:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276220 --- Comment #1 from hym2209268914@gmail.com --- a minimal example, try to press 'hello^D' and observe it terminating surprisingly. ``` #include <unistd.h> int main() { char buffer[5]; ssize_t nread; while ((nread = read(STDIN_FILENO, buffer, 5)) > 0) { write(STDOUT_FILENO, buffer, nread); } return 0; } ``` -- You are receiving this mail because: You are the assignee for the bug.