From 172742336863b2b7bd37aab43ac9a8054d6edfdf Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 8 Mar 2007 22:27:17 +0100 Subject: [PATCH] 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 --- login-utils/login.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.39.5