CONSOLE 1:

vint@vgreck:/var/data/work/mainroot/cross-ads$ uwsgi --master --protocol http 
--socket :8000 --module=util.transact.publisher --callable=ControlRequest 
--spooler run/web/spool/ --show-config

;uWSGI instance configuration
[uwsgi]
master = true
protocol = http
socket = :8000
module = util.transact.publisher
callable = ControlRequest
spooler = run/web/spool/
show-config = 1
;end of configuration

*** Starting uWSGI 0.9.8.3 (32bit) on [Wed Aug 24 12:00:31 2011] ***
compiled with version: 4.5.2 on 19 August 2011 15:13:24
your memory page size is 4096 bytes
uwsgi socket 0 bound to TCP address :8000 fd 3
Python version: 2.7.1+ (r271:86832, Apr 11 2011, 18:30:20)  [GCC 4.5.2]
Python main interpreter initialized at 0x81cb138
your server socket listen backlog is limited to 100 connections
*** Operational MODE: single process ***
WSGI application 0 (SCRIPT_NAME=) ready on interpreter 0x81cb138 pid: 6697 
(default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 6697)
spawned the uWSGI spooler on dir 
/var/data/work/mainroot/cross-ads/run/web/spool with pid 6710
spawned uWSGI worker 1 (pid: 6711, cores: 1)
..brutally killing workers...
binary reloading uWSGI...
closing all non-uwsgi socket fds > 2 (_SC_OPEN_MAX = 1024)...
found fd 3 mapped to socket 0 (:8000)
running uwsgi

;uWSGI instance configuration
[uwsgi]
master = true
protocol = http
socket = :8000
module = util.transact.publisher
callable = ControlRequest
spooler = run/web/spool/
show-config = 1
;end of configuration

*** Starting uWSGI 0.9.8.3 (32bit) on [Wed Aug 24 12:01:15 2011] ***
compiled with version: 4.5.2 on 19 August 2011 15:13:24
your memory page size is 4096 bytes
uwsgi socket 0 inherited INET address :8000 fd 3
Python version: 2.7.1+ (r271:86832, Apr 11 2011, 18:30:20)  [GCC 4.5.2]
Python main interpreter initialized at 0x9211098
your server socket listen backlog is limited to 100 connections
*** Operational MODE: single process ***
WSGI application 0 (SCRIPT_NAME=) ready on interpreter 0x9211098 pid: 6697 
(default app)
*** uWSGI is running in multiple interpreter mode ***
gracefully (RE)spawned uWSGI master process (pid: 6697)
spawned the uWSGI spooler on dir 
/var/data/work/mainroot/cross-ads/run/web/spool with pid 6745
spawned uWSGI worker 1 (pid: 6746, cores: 1)
killed the spooler with pid 6745
..gracefully killing workers...
Gracefully killing worker 1 (pid: 6746)...
subprocess 6745 exited by signal 9
binary reloading uWSGI...
closing all non-uwsgi socket fds > 2 (_SC_OPEN_MAX = 1024)...
found fd 3 mapped to socket 0 (:8000)
running uwsgi

;uWSGI instance configuration
[uwsgi]
master = true
protocol = http
socket = :8000
module = util.transact.publisher
callable = ControlRequest
spooler = run/web/spool/
show-config = 1
;end of configuration

*** Starting uWSGI 0.9.8.3 (32bit) on [Wed Aug 24 12:01:27 2011] ***
compiled with version: 4.5.2 on 19 August 2011 15:13:24
your memory page size is 4096 bytes
uwsgi socket 0 inherited INET address :8000 fd 3
Python version: 2.7.1+ (r271:86832, Apr 11 2011, 18:30:20)  [GCC 4.5.2]
Python main interpreter initialized at 0x9d73098
your server socket listen backlog is limited to 100 connections
*** Operational MODE: single process ***
WSGI application 0 (SCRIPT_NAME=) ready on interpreter 0x9d73098 pid: 6697 
(default app)
*** uWSGI is running in multiple interpreter mode ***
gracefully (RE)spawned uWSGI master process (pid: 6697)
spawned the uWSGI spooler on dir 
/var/data/work/mainroot/cross-ads/run/web/spool with pid 6762
spawned uWSGI worker 1 (pid: 6763, cores: 1)
SIGINT/SIGQUIT received...killing workers...
killed the spooler with pid 6762
subprocess 6762 exited by signal 9
goodbye to uWSGI.

vint@vgreck:/var/data/work/mainroot/cross-ads$ ps -fA | grep uwsgi
vint      6710     1 33 12:00 pts/3    00:00:21 uwsgi --master --protocol http 
--socket :8000 --module=util.transact.publisher --callable=ControlRequest 
--spooler run/web/spool/ --show-config
vint      6768  3996  0 12:01 pts/3    00:00:00 grep --color=auto uwsgi
vint@vgreck:/var/data/work/mainroot/cross-ads$ ps -fA | grep uwsgi
vint      6710     1 73 12:00 pts/3    00:02:01 uwsgi --master --protocol http 
--socket :8000 --module=util.transact.publisher --callable=ControlRequest 
--spooler run/web/spool/ --show-config
vint      6803  3996  0 12:03 pts/3    00:00:00 grep --color=auto uwsgi

CONSOLE 2:

$ kill -TERM 6697
$ kill -HUP 6697
$ kill -INT 6697

Is this behaviour expected? (pid 6710 consumes all CPU after wsgi master has 
terminated and can only be killed within KILL signal)
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to