summaryrefslogtreecommitdiff
path: root/accel-pptpd/log.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2010-11-24 06:59:57 +0300
committerDmitry Kozlov <xeb@mail.ru>2010-11-24 06:59:57 +0300
commitffa0e97458090a48b9a0ea7bc8749de636b26465 (patch)
treeba6678ed0e4916e638327d71a9050f1ebc47d8e5 /accel-pptpd/log.c
parenta09fdabf7939819581c6b7797b180a18c4f477fa (diff)
downloadaccel-ppp-ffa0e97458090a48b9a0ea7bc8749de636b26465.tar.gz
accel-ppp-ffa0e97458090a48b9a0ea7bc8749de636b26465.zip
core: allocate memory for context in first 2Gb due to bug in glibc-2.7 and probably other versions
Diffstat (limited to 'accel-pptpd/log.c')
-rw-r--r--accel-pptpd/log.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/accel-pptpd/log.c b/accel-pptpd/log.c
index f87f115d..d92ab125 100644
--- a/accel-pptpd/log.c
+++ b/accel-pptpd/log.c
@@ -135,6 +135,14 @@ void __export log_debug(const char *fmt,...)
}
}
+void __export log_debug2(const char *fmt,...)
+{
+ va_list ap;
+ va_start(ap, fmt);
+ vfprintf(debug_file, fmt, ap);
+ va_end(ap);
+ fflush(debug_file);
+}
void __export log_msg(const char *fmt,...)
{
va_list ap;