Author: mdounin
Date: 2012-09-26 16:25:12 +0000 (Wed, 26 Sep 2012)
New Revision: 4865
URL: http://trac.nginx.org/nginx/changeset/4865/nginx
Log:
Added clearing of cpu_affinity after process spawn.
This fixes unwanted/incorrect cpu_affinity use on dead worker processes
respawn. While this is not ideal, it's expected to be better when previous
situation where multiple processes were spawn with identical CPU affinity
set.
Reported by Charles Chen.
Modified:
trunk/src/os/unix/ngx_process_cycle.c
Modified: trunk/src/os/unix/ngx_process_cycle.c
===================================================================
--- trunk/src/os/unix/ngx_process_cycle.c 2012-09-26 15:52:06 UTC (rev 4864)
+++ trunk/src/os/unix/ngx_process_cycle.c 2012-09-26 16:25:12 UTC (rev 4865)
@@ -371,6 +371,8 @@
ngx_pass_open_channel(cycle, &ch);
}
+
+ cpu_affinity = 0;
}
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel