clear_session_logs is not needed when we are small.
This commit is contained in:
parent
4c77cb2cb2
commit
e53725b6b7
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: init.c,v 1.63 2003/10/03 13:31:32 dsl Exp $ */
|
||||
/* $NetBSD: init.c,v 1.64 2004/06/06 01:42:20 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993
|
||||
|
@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1991, 1993\n"
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)init.c 8.2 (Berkeley) 4/28/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: init.c,v 1.63 2003/10/03 13:31:32 dsl Exp $");
|
||||
__RCSID("$NetBSD: init.c,v 1.64 2004/06/06 01:42:20 christos Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -173,7 +173,9 @@ int getsecuritylevel(void);
|
|||
int setupargv(session_t *, struct ttyent *);
|
||||
int clang;
|
||||
|
||||
#ifndef LETS_GET_SMALL
|
||||
void clear_session_logs(session_t *, int);
|
||||
#endif
|
||||
|
||||
int start_session_db(void);
|
||||
void add_session(session_t *);
|
||||
|
@ -497,6 +499,7 @@ transition(state_t s)
|
|||
s = (state_t)(*s)();
|
||||
}
|
||||
|
||||
#ifndef LETS_GET_SMALL
|
||||
/*
|
||||
* Close out the accounting files for a login session.
|
||||
* NB: should send a message to the session logger to avoid blocking.
|
||||
|
@ -515,6 +518,7 @@ clear_session_logs(session_t *sp, int status)
|
|||
logwtmp(line, "", "");
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Start a session and allocate a controlling terminal.
|
||||
|
@ -1016,8 +1020,10 @@ read_ttys(void)
|
|||
* There shouldn't be any, but just in case...
|
||||
*/
|
||||
for (sp = sessions; sp; sp = snext) {
|
||||
#ifndef LETS_GET_SMALL
|
||||
if (sp->se_process)
|
||||
clear_session_logs(sp, 0);
|
||||
#endif
|
||||
snext = sp->se_next;
|
||||
free_session(sp);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue