From: Aleksei Bavshin Date: Thu, 1 Oct 2026 19:49:15 +0000 (-0700) Subject: Core: fixed ioctl(FIOASYNC) argument type X-Git-Tag: release-1.31.8~11 X-Git-Url: https://git.kaiwu.me/?a=commitdiff_plain;h=c44e4c6b2d401cddeb0788a858d5658c4a681578;p=nginx.git 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. --- 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;