HomeFreeBSD

kernel terminal should initialize fg and bg variables before calling…

Description

kernel terminal should initialize fg and bg variables before calling TUNABLE_INT_FETCH

We have two ways to check if kenv variable exists - either we check return
value from TUNABLE_INT_FETCH, or we pre-initialize the variable and check
if this value did change. In terminal_init() it is more convinient to
use pre-initialized variables.

Problem was revealed by older loader.efi, which did not set teken.* variables.

Reported by: tuexen

Details

Provenance
tsoomeAuthored on Sep 26 2019, 7:19 AM
Parents
rG29f7096df916: vt: use proper return value check with TUNABLE_INT_FETCH
Branches
Unknown
Tags
Unknown

Event Timeline