]> git.kaiwu.me - nginx.git/commit
Core: fixed ioctl(FIOASYNC) argument type
authorAleksei Bavshin <a.bavshin@nginx.com>
Thu, 1 Oct 2026 19:49:15 +0000 (12:49 -0700)
committerAleksei Bavshin <a.bavshin@f5.com>
Thu, 15 Oct 2026 15:35:38 +0000 (08:35 -0700)
commitc44e4c6b2d401cddeb0788a858d5658c4a681578
tree6d7cfc312a0bbb03d84330d3f9f5f0bcf46d3ceb
parent7e40bbc09f7336dad13bdda2785d1e6e2ee2f190
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