Firstly, getty shouldn't just panic on failure (it should instead return Results like the other utilities). Because of how getty affects the state of the system, I think the execve() call may be alright though.
getty should not be hard-coded to call /bin/ion. It should instead take an argument specifying what TTY to take control of and what program to start on said TTY (the current values can serve as defaults, however). We may want to implement gettytab or something similar as well.
Firstly,
getty
shouldn't just panic on failure (it should instead returnResult
s like the other utilities). Because of howgetty
affects the state of the system, I think theexecve()
call may be alright though.getty
should not be hard-coded to call/bin/ion
. It should instead take an argument specifying what TTY to take control of and what program to start on said TTY (the current values can serve as defaults, however). We may want to implementgettytab
or something similar as well.