diff options
Diffstat (limited to 'src/os/unix')
-rw-r--r-- | src/os/unix/ngx_process_cycle.c | 2 | ||||
-rw-r--r-- | src/os/unix/ngx_thread.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/os/unix/ngx_process_cycle.c b/src/os/unix/ngx_process_cycle.c index 433c4f073..83b8da8c2 100644 --- a/src/os/unix/ngx_process_cycle.c +++ b/src/os/unix/ngx_process_cycle.c @@ -858,7 +858,7 @@ static void* ngx_worker_thread_cycle(void *data) return (void *) 1; } - ngx_log_debug1(NGX_LOG_DEBUG_CORE, cycle->log, ngx_errno, + ngx_log_debug1(NGX_LOG_DEBUG_CORE, cycle->log, 0, "thread " TID_T_FMT " started", ngx_thread_self()); ngx_setthrtitle("worker thread"); diff --git a/src/os/unix/ngx_thread.h b/src/os/unix/ngx_thread.h index eb5c33f85..b779de060 100644 --- a/src/os/unix/ngx_thread.h +++ b/src/os/unix/ngx_thread.h @@ -22,7 +22,11 @@ typedef pthread_t ngx_tid_t; #define ngx_thread_self() pthread_self() #define ngx_log_tid (int) ngx_thread_self() +#if defined(__FreeBSD__) && !defined(NGX_LINUXTHREADS) #define TID_T_FMT PTR_FMT +#else +#define TID_T_FMT "%d" +#endif typedef pthread_key_t ngx_tls_key_t; |