From: Alex Rousskov Date: Mon, 14 Jun 2010 20:45:53 +0000 (-0600) Subject: Use newly added UsingSmp() instead of a spelling out the same condition. X-Git-Tag: SQUID_3_2_0_1~93^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=678584927570c7cb561ab8e34e18e6f9f768a14d;p=thirdparty%2Fsquid.git Use newly added UsingSmp() instead of a spelling out the same condition. --- diff --git a/src/ipc/StartListening.cc b/src/ipc/StartListening.cc index 764be9e6cc..9292bd753d 100644 --- a/src/ipc/StartListening.cc +++ b/src/ipc/StartListening.cc @@ -36,7 +36,7 @@ void Ipc::StartListening(int sock_type, int proto, IpAddress &addr, p.flags = flags; p.fdNote = fdNote; - if (!opt_no_daemon && Config.main_processes > 1) { // if SMP is on, share + if (UsingSmp()) { // if SMP is on, share Ipc::JoinSharedListen(p, callback); return; // wait for the call back }