From f33518b9648e33a81b085e97e91b6d559565362f Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Tue, 22 Jan 2019 16:15:56 +0000 Subject: [PATCH] changed sys::closelog() a bit --- qse/lib/awk/mod-sys.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qse/lib/awk/mod-sys.c b/qse/lib/awk/mod-sys.c index b5497512..6c3b4c59 100644 --- a/qse/lib/awk/mod-sys.c +++ b/qse/lib/awk/mod-sys.c @@ -1035,6 +1035,10 @@ static int fnc_closelog (qse_awk_rtx_t* rtx, const qse_awk_fnc_info_t* fi) mctx->log.ident = QSE_NULL; } + /* back to the local syslog in case writelog() is called + * without another openlog() */ + mctx->log.type = SYSLOG_LOCAL; + rx = 0; retv = qse_awk_rtx_makeintval(rtx, rx);