]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ttydev_write: prevent stops while terminal is busied
authorKonstantin Belousov <kib@FreeBSD.org>
Thu, 13 May 2021 01:35:06 +0000 (04:35 +0300)
committerKonstantin Belousov <kib@FreeBSD.org>
Tue, 18 May 2021 17:52:03 +0000 (20:52 +0300)
commit8cf912b017a04a2eec01fbaa1f7b9ef556403ede
tree2ad527afd7aa1f91a5856fa51c34f813fc2c3bfe
parentcc6f46ac2fd5d910e632fced3f21d0b0f53030d8
ttydev_write: prevent stops while terminal is busied

Since busy state is checked by all blocked writes, stopping a process
which waits in ttydisc_write() causes cascade.  Utilize sigdeferstop()
to avoid the issue.

Submitted by: Jakub Piecuch <j.piecuch96@gmail.com>
PR: 255816
MFC after: 1 week
sys/kern/tty.c