Skip to content

Commit c2bcc18

Browse files
committed
bugfix: fixed a Win32 compatibility issue introduced in v0.0.4.
1 parent 79342fd commit c2bcc18

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/ngx_stream_lua_initworkerby.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,13 @@ ngx_stream_lua_init_worker(ngx_cycle_t *cycle)
5353

5454
/* lmcf != NULL && lmcf->lua != NULL */
5555

56+
#if !(NGX_WIN32)
5657
/* disable init_worker_by_lua* and destroy lua VM in cache processes */
5758
if (ngx_process == NGX_PROCESS_HELPER
58-
#if defined(HAVE_PRIVILEGED_PROCESS_PATCH) && !NGX_WIN32
59+
# ifdef HAVE_PRIVILEGED_PROCESS_PATCH
5960
&& !ngx_is_privileged_agent
60-
#endif
61-
)
61+
# endif
62+
)
6263
{
6364
ngx_log_debug2(NGX_LOG_DEBUG_STREAM, ngx_cycle->log, 0,
6465
"lua close the global Lua VM %p in the "
@@ -69,6 +70,7 @@ ngx_stream_lua_init_worker(ngx_cycle_t *cycle)
6970

7071
return NGX_OK;
7172
}
73+
#endif /* NGX_WIN32 */
7274

7375
if (lmcf->init_worker_handler == NULL) {
7476
return NGX_OK;

0 commit comments

Comments
 (0)