Skip to content

Fix HDMI shell job-control (controlling TTY) - #7

Merged
barfle merged 2 commits into
mainfrom
elliotmackenzie/fix-host-login-ctty
Sep 3, 2026
Merged

barfle merged 2 commits into
mainfrom
elliotmackenzie/fix-host-login-ctty

Conversation

@barfle

@barfle barfle commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Stop the sandboxed PTY child from claiming the slave as controlling TTY before handoff.
  • Have faceplate-host-login force-steal CTTY (TIOCSCTTY with steal) so /bin/login + bash get a real session.
  • Fixes the cannot set terminal process group / no job control in this shell messages on Dataplicity OS HDMI login.

Test plan

  • CI / test_host_session
  • Pin new SHA in dataplicity-os; flash staging image
  • HDMI login: no ioctl/job-control warnings; tty shows a pts

The sandboxed PTY child was setsid()+claiming the slave before SCM_RIGHTS
handoff, so host-login's TIOCSCTTY(0) failed and bash printed ioctl / no
job control warnings even though the shell worked.
@barfle
barfle merged commit 98d6e00 into main Sep 3, 2026
8 checks passed
@barfle
barfle deleted the elliotmackenzie/fix-host-login-ctty branch September 3, 2026 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant