[Bug 241559] cat(1) endless loop when writing to special device file

2019-10-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241559 --- Comment #2 from sig...@gmail.com --- Isn't it still less bad with this change? It still prints an error message if it gets a write returning 0. That way you know it had to stop before it wrote everything. >From what I found, POSIX say

[Bug 241559] cat(1) endless loop when writing to special device file

2019-10-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241559 --- Comment #1 from Conrad Meyer --- Unfortunately write() => 0 has no special semantics in POSIX or FreeBSD. It just means partial progress / no error. (So I don't think the proposed change to cat is correct.) This interacts poorly with

[Bug 241559] cat(1) endless loop when writing to special device file

2019-10-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241559 Bug ID: 241559 Summary: cat(1) endless loop when writing to special device file Product: Base System Version: 12.1-RELEASE Hardware: Any OS: Any