[Bug 276220] tty_disc canonical input processing: suprising behavior of the EOF cchar

[email protected]
Newsgroups gmane.os.freebsd.devel.standards
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276220

--- Comment #1 from [email protected] ---
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.