flock() versus lock file semantics
flock() versus lock file semantics
Posted Oct 20, 2025 2:45 UTC (Mon) by gdt (subscriber, #6284)In reply to: flock() versus lock file semantics by chris_se
Parent article: Debian Technical Committee overrides systemd change
> You can set the status of the DTR line via TIOCM_DTR on an open device
That changes the semantics of the end of a login session from a dial-in modem. The user terminates the shell, and that file close brings down DTR, clearing down the call. To adjust to this behaviour every shell will need to be updated.
Whereas currently the system boot can create a lock file for every dial-in line to prevent its use by programs looking for a dial-out line.
