Files
login/cmd
Claude 82f289fbef handoff: the caller's line itself, from app_dmodem and on to a BBS
A header that comes with a descriptor (SCM_RIGHTS; app_dmodem's
handoff = yes passes the modem's pty terminal) gives -serve the line
itself: the session runs on that terminal as its controlling tty, so
the menu, shells and pppd are on the modem's line and nothing is
copied.  The connection then only marks the session's life: the
caller gone closes it (SIGHUP to the session), the session ending
closes it (app_dmodem hangs up).

An item with handoff = yes (mode = unix, header = yes) hands the
session's line to its server the same way, the item's send and what
the menu read and did not use right after the header, and has it back
when the server closes the connection (after = menu shows the menu
again).  The time limit still holds: at the deadline the menu closes
the connection.

Tests: eight callers at once on handed-over lines, each session on a
terminal, each handed on to a BBS that takes the terminal and gives it
back; PPP on a handed-over line ended at its time limit, the call hung
up; handoff without mode = unix and header = yes refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRxseyEuLRFbFaBoX3
2026-11-08 16:48:57 +00:00
..