Win32: improved ngx_mutex_init() stub (ticket #138).

This allows to run nginx with "master_process off" under Windows.
This commit is contained in:
Maxim Dounin 2012-04-02 21:31:45 +00:00
parent 9063bc8713
commit 7744472c8e

View File

@ -72,7 +72,18 @@ ngx_thread_set_tls(ngx_tls_key_t *key, void *data)
ngx_mutex_t *
ngx_mutex_init(ngx_log_t *log, ngx_uint_t flags)
{
return (ngx_mutex_t *) 1;
ngx_mutex_t *m;
m = ngx_alloc(sizeof(ngx_mutex_t), log);
if (m == NULL) {
return NULL;
}
m->log = log;
/* STUB */
return m;
}