ensure SIGPIPE is ignored in gevent mode

This commit is contained in:
Unbit
2014-05-13 12:52:00 +02:00
parent c01d6242ad
commit 5871146519
+3
View File
@@ -345,6 +345,9 @@ static void gil_gevent_release() {
static void gevent_loop() {
// ensure SIGPIPE is ignored
signal(SIGPIPE, SIG_IGN);
if (!uwsgi.has_threads && uwsgi.mywid == 1) {
uwsgi_log("!!! Running gevent without threads IS NOT recommended, enable them with --enable-threads !!!\n");
}