Date: Tue, 29 Oct 2019 02:09:04 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 241559] cat(1) endless loop when writing to special device file Message-ID: <bug-241559-227-VN8Mlc6BEC@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-241559-227@https.bugs.freebsd.org/bugzilla/> References: <bug-241559-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241559 --- Comment #1 from Conrad Meyer <cem@freebsd.org> --- 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 block devices in FreeBSD, which may truncate IO silently at end of device so long as the offset is in-bounds. -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-241559-227-VN8Mlc6BEC>
