From c44e4c6b2d401cddeb0788a858d5658c4a681578 Mon Sep 17 00:00:00 2001 From: Aleksei Bavshin Date: Thu, 1 Oct 2026 12:49:15 -0700 Subject: [PATCH] Core: fixed ioctl(FIOASYNC) argument type The documented argument type for this operation is an integer boolean. Passing 1 as u_long makes the call silently fail on 64-bit big-endian platforms, as the kernel receives only high 4 bytes set to 0. --- src/os/unix/ngx_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/unix/ngx_process.c b/src/os/unix/ngx_process.c index 15680237a..082de27a0 100644 --- a/src/os/unix/ngx_process.c +++ b/src/os/unix/ngx_process.c @@ -87,7 +87,7 @@ ngx_pid_t ngx_spawn_process(ngx_cycle_t *cycle, ngx_spawn_proc_pt proc, void *data, char *name, ngx_int_t respawn) { - u_long on; + int on; ngx_pid_t pid; ngx_int_t s;