Mercurial > hg > nginx
diff src/os/win32/ngx_process.c @ 2745:1983932b8075
pass command lines options to workers
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 23 Apr 2009 18:22:28 +0000 |
parents | d52cf82d0d77 |
children | 3f287b615408 |
line wrap: on
line diff
--- a/src/os/win32/ngx_process.c +++ b/src/os/win32/ngx_process.c @@ -58,6 +58,7 @@ ngx_spawn_process(ngx_cycle_t *cycle, ch ctx.path = file; ctx.name = name; + ctx.args = GetCommandLine(); ctx.argv = NULL; ctx.envp = NULL; @@ -195,7 +196,7 @@ ngx_execute(ngx_cycle_t *cycle, ngx_exec ngx_memzero(&pi, sizeof(PROCESS_INFORMATION)); - if (CreateProcess(ctx->path, /* STUB */ NULL, + if (CreateProcess(ctx->path, ctx->args, NULL, NULL, 0, CREATE_NO_WINDOW, NULL, NULL, &si, &pi) == 0) {