> > From: Roberto De Ioris <[email protected]>
> > 
> > You mean that if you run 4 workers, atexit runs 8 times ?

Yes. I just tried that, with nicer print statements:

spawned uWSGI master process (pid: 21444)
spawned uWSGI worker 1 (pid: 21445, cores: 1)
spawned uWSGI worker 2 (pid: 21446, cores: 1)
spawned uWSGI worker 3 (pid: 21447, cores: 1)
spawned uWSGI worker 4 (pid: 21448, cores: 1)
[pid: 21447|app: 0|req: 1/1] 127.0.0.1 () {42 vars in 1528 bytes} [Sat Dec  1 
14:09:22 2012] GET /__ping__ => generated 4 bytes in 1495 msecs (HTTP/1.1 200) 
5 headers in 144 bytes (1 switches on core 0)
[pid: 21448|app: 0|req: 1/2] 127.0.0.1 () {42 vars in 1528 bytes} [Sat Dec  1 
14:09:22 2012] GET /__ping__ => generated 4 bytes in 1485 msecs (HTTP/1.1 200) 
5 headers in 144 bytes (1 switches on core 0)
[pid: 21446|app: 0|req: 1/3] 127.0.0.1 () {42 vars in 1528 bytes} [Sat Dec  1 
14:09:22 2012] GET /__ping__ => generated 4 bytes in 1540 msecs (HTTP/1.1 200) 
5 headers in 144 bytes (1 switches on core 0)
[pid: 21445|app: 0|req: 1/4] 127.0.0.1 () {42 vars in 1528 bytes} [Sat Dec  1 
14:09:23 2012] GET /__ping__ => generated 4 bytes in 1498 msecs (HTTP/1.1 200) 
5 headers in 144 bytes (1 switches on core 0)
SIGINT/SIGQUIT received...killing workers...
21447: dispose_dbengine
21446: dispose_dbengine
21448: dispose_dbengine
21445: dispose_dbengine
21446: dispose_dbengine
21445: dispose_dbengine
21447: dispose_dbengine
21448: dispose_dbengine
goodbye to uWSGI.


> > That is strange, which OS ?
Mac OS X 10.8.2 --- uname -a output is:

Darwin toodee.local 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 
PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64

uwsgi version is 1.4.2, and python 2.6.8.

Gulli

_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to