Skip to content

Commit 58f15a8

Browse files
authored
feat: enable threads for privileged agent (#72)
Signed-off-by: spacewander <[email protected]>
1 parent 2b04d54 commit 58f15a8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git src/core/ngx_thread_pool.c src/core/ngx_thread_pool.c
2+
index 7fb0f7f..95081a6 100644
3+
--- src/core/ngx_thread_pool.c
4+
+++ src/core/ngx_thread_pool.c
5+
@@ -587,6 +587,9 @@ ngx_thread_pool_init_worker(ngx_cycle_t *cycle)
6+
ngx_thread_pool_conf_t *tcf;
7+
8+
if (ngx_process != NGX_PROCESS_WORKER
9+
+#if HAVE_PRIVILEGED_PROCESS_PATCH
10+
+ && !ngx_is_privileged_agent
11+
+#endif
12+
&& ngx_process != NGX_PROCESS_SINGLE)
13+
{
14+
return NGX_OK;

0 commit comments

Comments
 (0)