diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-02-25 20:16:15 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-02-25 20:16:15 +0000 |
commit | f2334416e7485ff1c260a46ba47aeadffeff923a (patch) | |
tree | d4d562a3c0c4af27ed23e9602cad653f1d4fec00 /src/core/nginx.c | |
parent | 14dab4563898155799a06007fff9c30c4dac8b26 (diff) | |
download | nginx-f2334416e7485ff1c260a46ba47aeadffeff923a.tar.gz nginx-f2334416e7485ff1c260a46ba47aeadffeff923a.zip |
nginx-0.0.2-2004-02-25-23:16:15 import
Diffstat (limited to 'src/core/nginx.c')
-rw-r--r-- | src/core/nginx.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/nginx.c b/src/core/nginx.c index 592711522..21363d268 100644 --- a/src/core/nginx.c +++ b/src/core/nginx.c @@ -147,6 +147,12 @@ int main(int argc, char *const *argv, char **envp) ctx.argc = argc; ctx.argv = argv; +#if (NGX_THREADS) + if (ngx_time_mutex_init(log) == NGX_ERROR) { + return 1; + } +#endif + if (ngx_getopt(&ctx, &init_cycle) == NGX_ERROR) { return 1; } @@ -649,7 +655,7 @@ static void ngx_worker_process_cycle(ngx_cycle_t *cycle, void *data) #if (NGX_THREADS) - if (ngx_init_threads(5, 128 * 1024 * 1024, cycle->log) == NGX_ERROR) { + if (ngx_init_threads(5, 128 * 1024 * 1024, cycle) == NGX_ERROR) { /* fatal */ exit(1); } |