NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Getty on USB serial port ("William D. Jones") writes:

>There's no getty process! What happened? Is getty supposed to disappear 
>after invoking login?

Yes. getty initializes the tty, waits for input and then executes login.
It doesn't fork a subprocess, it just calles execve().

login will also just execute your login shell (after you successfully
entered user+password). When your login shell exits, the whole session
is gone and init spawns another getty process.

When you fail to login several times, the login process will exit itself.
And again the session ends and init spawns another getty process.

                                Michael van Elst
                                "A potential Snark may lurk in every tree."

Home | Main Index | Thread Index | Old Index