From: Karel Zak Date: Thu, 8 Mar 2007 21:27:17 +0000 (+0100) Subject: login: keep syslog useful for end of PAM session. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=172742336863b2b7bd37aab43ac9a8054d6edfdf;p=util-linux login: keep syslog useful for end of PAM session. The PAM session modules typically write to syslog when leaving the session. The openlog() is way how define a "ident" for syslog messages. Signed-off-by: Karel Zak --- diff --git a/login-utils/login.c b/login-utils/login.c index ba3b86b0..6ad8fcc8 100644 --- a/login-utils/login.c +++ b/login-utils/login.c @@ -1096,6 +1096,7 @@ Michael Riepe /* wait as long as any child is there */ while(wait(NULL) == -1 && errno == EINTR) ; + openlog("login", LOG_ODELAY, LOG_AUTHPRIV); PAM_END; exit(0); }