mirror of
https://github.com/nginx/nginx.git
synced 2026-10-24 14:47:45 -05:00
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:
1 parent
7e40bbc09f
commit
c44e4c6b2d
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user