Starting the server in a background process group on the VT it is about to take over -- "X vtN &", or a display manager such as Ly that forks and runs the server in the child -- leaves it stopped (state T) with the console in KD_GRAPHICS, and its log ends at "(++) using VT number N".
Our existing patch calls tcsetattr() to put the tty in raw mode but ioctl TIOCSETA triggers SIGTTOU in tty_wait_background.
Do what the Linux code does instead: join the parent process group so we are not a group leader (setsid() fails for one), then setsid() into a new session with no controlling terminal.
Sponsored by: Defenso
2 total changed files
Loading changes...
Loading changes...
You've reached the end of this PR review
Thus concludes todayโs episode of โJust One Small Changeโ