]> git.kaiwu.me - nginx.git/commit
Fixed sched_setaffinity(2) to correctly pass size.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 16 Jan 2012 11:13:48 +0000 (11:13 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 16 Jan 2012 11:13:48 +0000 (11:13 +0000)
commitb904676b5e687c8aeabcce297aa6250e07e63462
tree23b25bf5f19aff05c4ef75d1174f501da02c2d7e
parent9572920af06cf50de76b25060948cac322458f9e
Fixed sched_setaffinity(2) to correctly pass size.

Second argument (cpusetsize) is size in bytes, not in bits.  Previously
used constant 32 resulted in reading of uninitialized memory and caused
EINVAL to be returned on some Linux kernels.
src/os/unix/ngx_process_cycle.c