HomeFreeBSD

tty_wait_background: improve locking.

Description

tty_wait_background: improve locking.

Increase the scope of the process group lock ownership. This ensures that
we are consistent in returning EIO for tty write from an orphan and delivery
of TTYOUT signals.

Reviewed by: jilles
Tested by: pho
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D27871

Details

Provenance
kibAuthored on Dec 31 2020, 1:45 PM
Reviewer
jilles
Differential Revision
D27871: Rework jobc handling.
Parents
rGef739c7373d8: pgrp: Prevent use after free.
Branches
Unknown
Tags
Unknown