[nginx] svn commit: r4865 - trunk/src/os/unix

mdounin at mdounin.ru mdounin at mdounin.ru
Wed Sep 26 16:25:12 UTC 2012


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;
 }
 
 



More information about the nginx-devel mailing list