[Bug 266627] stty -f <file> should be non-blocking

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 27 Sep 2022 21:13:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266627

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 output
will be written regardless of the TOSTOP setting).

I agree that patching the kernel for this is a bad idea. The O_NONBLOCK flag is
intended to allow non-blocking reads and writes such as for ssh(1), not to
interfere with the normal functioning of job control.

-- 
You are receiving this mail because:
You are the assignee for the bug.