Whoops! I figured this out. I have logging configured with a handler along the 
lines laid out by Mike Bayer there: http://stackoverflow.com/a/894284/74683 ... 
which starts a daemon thread in the parent process to receive log messages from 
child processes and write them to a file.

When I disable that handler, I get only one atexit call per worker process, and 
ctrl+c works without problems. So that thread in the master is definitely 
causing the problem.

I gather I should not be doing that? Am I just lucky to have had no problems 
with it in production? :)

Gulli

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

Reply via email to