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.
This commit is contained in:
Aleksei Bavshin authored and Aleksei Bavshin committed 2026-10-15 08:35:38 -07:00
1 parent 7e40bbc09f
commit c44e4c6b2d
1 file changed
+1 -1
+1 -1
View File
@@ -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;