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

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 26 Sep 2022 21:24:11 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266627

--- Comment #7 from Konstantin Belousov <kib@FreeBSD.org> ---
(In reply to Stefan Eßer from comment #5)
I found a Linux box to test, and so far the behavior seems to be identical
to ours.  As I said, the patch would break existing software most likely.

[kostik@fc ~]$ stty -F /dev/tty sane&
[1] 1309
[kostik@fc ~]$ 

[1]+  Stopped                 stty -F /dev/tty sane
[kostik@fc ~]$

The hang you see is due to SIGTTOU sent before return from
tty_wait_background().
This means that the patch is to make things work to your liking is even less
likely to be reasonable.

I attached the updated version that should work for you, but it is arguably
not committable.

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