Date: Tue, 27 Sep 2022 21:13:03 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 266627] stty -f <file> should be non-blocking Message-ID: <bug-266627-227-XKuDB5WG33@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-266627-227@https.bugs.freebsd.org/bugzilla/> References: <bug-266627-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=3D266627 Jilles Tjoelker <jilles@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jilles@FreeBSD.org --- Comment #11 from Jilles Tjoelker <jilles@FreeBSD.org> --- A similar effect could be obtained without patching any code using a command like (trap '' TTOU; stty -f /dev/tty sane) Note that with both this example and the proposed -i option, both the tcsetattr() call and any writes are affected (i.e. error messages or -a out= put will be written regardless of the TOSTOP setting). I agree that patching the kernel for this is a bad idea. The O_NONBLOCK fla= g is intended to allow non-blocking reads and writes such as for ssh(1), not to interfere with the normal functioning of job control. --=20 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-266627-227-XKuDB5WG33>