[PATCH] Be more verbose in ngx_setaffinity()

Maxim Dounin mdounin at mdounin.ru
Fri May 26 15:31:41 UTC 2017


On Fri, May 26, 2017 at 04:42:51PM +0800, Sepherosa Ziehau wrote:

> Hi all,
> Patch is here:
> https://leaf.dragonflybsd.org/~sephe/verb_setaffinity.diff

Process PID is present in error log messages, it is believed to be 
enough to identify which worker uses which CPU.  It is also looks 
like a layering violation to print ngx_worker from a generic 
function which knows nothing if it is being called in a worker 
process or not.

Do you have any specific reasons for the change?

Maxim Dounin

More information about the nginx-devel mailing list