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

Yes, you should not do that as you are generating doubled logs.

This specific kind of optimization (as already suggested in this thread)
is already available (and tons of ways more efficient) in uWSGI itself.
You need only to enable it.


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

Reply via email to