summaryrefslogtreecommitdiffstats
path: root/PICA_log.c
diff options
context:
space:
mode:
authorme_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac>2013-08-03 12:30:27 +0000
committerme_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac>2013-08-03 12:30:27 +0000
commita48ea77194fc5c74ce8cbe13536975a8ebce1b0b (patch)
treee2eb46eef5dd230915305050c69bbe0b8961d98c /PICA_log.c
parente81efe9708f5f6c34ed87335b0176a0b734e9e5a (diff)
downloadpica-pica-a48ea77194fc5c74ce8cbe13536975a8ebce1b0b.tar.gz
pica-pica-a48ea77194fc5c74ce8cbe13536975a8ebce1b0b.zip
removed calls to log functions from nodewait_resolve_thread() and nodewait_connect_thread(), log functions are not thread safe, calling them caused segfaults
git-svn-id: svn://localhost/project_picapica/trunk@256 fb96df88-216d-11de-830c-f3023f12d8ac
Diffstat (limited to 'PICA_log.c')
-rw-r--r--PICA_log.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/PICA_log.c b/PICA_log.c
index 3e55381..51fa42f 100644
--- a/PICA_log.c
+++ b/PICA_log.c
@@ -4,6 +4,8 @@
#include <stdlib.h>
#include <time.h>
+//logging functions are not thread-safe, call them only from the main thread
+
static int PICA_loglevel = PICA_LOG_INFO;
void PICA_fatal(const char *fmt,...)