]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Use newly added UsingSmp() instead of a spelling out the same condition.
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 14 Jun 2010 20:45:53 +0000 (14:45 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Mon, 14 Jun 2010 20:45:53 +0000 (14:45 -0600)
src/ipc/StartListening.cc

index 764be9e6ccbe8cffa1ce615a1de397a9ce68ec03..9292bd753df5ca52521f4d09079c267a8553090c 100644 (file)
@@ -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
     }