summaryrefslogtreecommitdiff
path: root/pjlib/src/pj/os_core_unix.c
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2009-08-05 10:58:02 +0000
committerBenny Prijono <bennylp@teluu.com>2009-08-05 10:58:02 +0000
commit1f6819c37e9542a7995bc60415c052ba9c7e0c28 (patch)
treec96ad796f03a363813b64af29ee0d9091e139e14 /pjlib/src/pj/os_core_unix.c
parent78b3a41d1e054c7cd2f29ff66b3aef258ab87010 (diff)
Ticket #931: Logging function may infinitely recursively calls itself on Windows Mobile (thanks Emil Sturniolo for the report)
- Added feature to temporarily suspend the logging facility while we're in the pj_log() function. The suspension will be thread specific if the platform supports it. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2853 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj/os_core_unix.c')
-rw-r--r--pjlib/src/pj/os_core_unix.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pjlib/src/pj/os_core_unix.c b/pjlib/src/pj/os_core_unix.c
index f256ded9..00094cf3 100644
--- a/pjlib/src/pj/os_core_unix.c
+++ b/pjlib/src/pj/os_core_unix.c
@@ -139,6 +139,9 @@ PJ_DEF(pj_status_t) pj_init(void)
#endif
+ /* Init logging */
+ pj_log_init();
+
/* Initialize exception ID for the pool.
* Must do so after critical section is configured.
*/