]> git.ipfire.org Git - thirdparty/systemd.git/commit
getty: Pass tty to use by agetty via stdin
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 29 Oct 2021 12:54:31 +0000 (13:54 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 5 Nov 2021 21:32:11 +0000 (21:32 +0000)
commitb4bf9007cbee7dc0b1356897344ae2a7890df84c
tree0d9094df26ce2de90348393456a6c972ba0968e5
parent8389fd19d20370077f2d5601af0a089ec92ece05
getty: Pass tty to use by agetty via stdin

If the tty arg is set to "-", agetty uses the stdin fd as the tty.
Let's pass the tty this way so that we keep an fd open to the tty
at all times. If all fd's to a tty are closed, the kernel might
reset the tty which we want to avoid.
units/console-getty.service.in
units/container-getty@.service.in
units/getty@.service.in
units/serial-getty@.service.in