aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_log.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2002-09-02 14:48:24 +0000
committerIgor Sysoev <igor@sysoev.ru>2002-09-02 14:48:24 +0000
commita58e3ca14300fce97b2124233afe140c8d59199f (patch)
treed24eff379cc7dfb5c6952f1bb15735cd63ba2179 /src/core/ngx_log.c
parent016b85270268989d769bade2004a7c628a47d726 (diff)
downloadnginx-a58e3ca14300fce97b2124233afe140c8d59199f.tar.gz
nginx-a58e3ca14300fce97b2124233afe140c8d59199f.zip
nginx-0.0.1-2002-09-02-18:48:24 import
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);