aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ngx_log.c')
-rw-r--r--src/core/ngx_log.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/ngx_log.c b/src/core/ngx_log.c
index bed628aed..6a6835802 100644
--- a/src/core/ngx_log.c
+++ b/src/core/ngx_log.c
@@ -45,7 +45,11 @@ void ngx_log_error_core(int level, ngx_log_t *log, ngx_err_t err,
" [%s] ", err_levels[level]);
len += ngx_snprintf(errstr + len, sizeof(errstr) - len - 1,
+#if (WIN32)
+ "%d#%d: ", 0, 0);
+#else
"%d#%d: ", getpid(), 0);
+#endif
#if (HAVE_VARIADIC_MACROS)
va_start(args, fmt);