https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288898

--- Comment #2 from Johannes Altmanninger <[email protected]> ---
Thanks for digging this up.
I know nothing about this code but looking at the comments justifying the nop
in termteken_respond, here are my first thoughts:

> The TTY could pick up other locks.

interesting.  I'd have expected that the terminal emulator has exclusive
access to one end of the PTY, no locks needed.  Only applications running
in the terminal, i.e. writing to the other end, might race with each other,
but that can be handled independently.

> It could also in theory cause loops, when the TTY performs echoing of a
command that generates even more input.

Yeah I think that's a theoretical possibility in most terminals.
Seems like the correct behavior.

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

Reply via email to