From: Vsevolod Stakhov Date: Tue, 15 Mar 2016 11:50:00 +0000 (+0000) Subject: [Minor] Ensure that socket received is non-blocking X-Git-Tag: 1.2.0~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02fece83f5e4bcf15d882f6bd82edddbb3b8abc0;p=thirdparty%2Frspamd.git [Minor] Ensure that socket received is non-blocking --- diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index e4679afe5c..c275f66134 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -1349,6 +1349,9 @@ fuzzy_peer_rep (struct rspamd_worker *worker, msg_err ("cannot receive peer fd from the main process"); exit (EXIT_FAILURE); } + else { + rspamd_socket_nonblocking (rep_fd); + } /* Start listening */ cur = worker->cf->listen_socks;