From: deraadt Date: Tue, 25 Mar 1997 23:12:23 +0000 (+0000) Subject: closelog() more often X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2898efc98632869c70e8b7a12d069d64cb854186;p=openbsd closelog() more often --- diff --git a/sbin/init/init.c b/sbin/init/init.c index c99dade77b2..0385372817a 100644 --- a/sbin/init/init.c +++ b/sbin/init/init.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init.c,v 1.8 1997/02/22 08:38:10 millert Exp $ */ +/* $OpenBSD: init.c,v 1.9 1997/03/25 23:12:23 deraadt Exp $ */ /* $NetBSD: init.c,v 1.22 1996/05/15 23:29:33 jtc Exp $ */ /*- @@ -47,7 +47,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)init.c 8.2 (Berkeley) 4/28/95"; #else -static char rcsid[] = "$OpenBSD: init.c,v 1.8 1997/02/22 08:38:10 millert Exp $"; +static char rcsid[] = "$OpenBSD: init.c,v 1.9 1997/03/25 23:12:23 deraadt Exp $"; #endif #endif /* not lint */ @@ -359,6 +359,7 @@ stall(va_alist) vsyslog(LOG_ALERT, message, ap); va_end(ap); + closelog(); sleep(STALL_TIMEOUT); } @@ -387,6 +388,7 @@ warning(va_alist) vsyslog(LOG_ALERT, message, ap); va_end(ap); + closelog(); } /* @@ -413,6 +415,7 @@ emergency(va_alist) vsyslog(LOG_EMERG, message, ap); va_end(ap); + closelog(); } /*