UTMP: Only account for getty processes

This patch removes accounting for all processes to instead implement the
traditional SysV getty accounting.  (Telnet/SSH et al maintain their own
accounding for UTMP.)

TODO: WTMP support

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2016-08-17 18:43:49 +02:00
1 parent b6bf8bf518
commit 5bab329178
3 files changed
+4 -11

No files matched your search

-3
View File
@@ -106,9 +106,6 @@ int run(char *cmd)
for (i = 1; i < NSIG; i++)
DFLSIG(sa, i, 0);
/* Set INIT_PROCESS UTMP entry */
utmp_set_init(ttyname(0), 0);
/* Always redirect stdio for run() */
fp = fopen("/dev/null", "w");
if (fp) {