]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceFormat Enforcement
authorSource Maintenance <squidadm@squid-cache.org>
Wed, 21 Jan 2015 18:12:04 +0000 (18:12 +0000)
committerSource Maintenance <squidadm@squid-cache.org>
Wed, 21 Jan 2015 18:12:04 +0000 (18:12 +0000)
src/main.cc
src/tools.cc

index d356ae8164651b7228ea9d0040c6d7d351dfe3d2..2fd0bc5b9a4fffa1e90cbc0089e14b53340c861f 100644 (file)
@@ -263,7 +263,7 @@ SignalEngine::doShutdown(time_t wait)
         // Shutdown as soon as possible.
         wait = 0;
 #endif
-     } else {
+    } else {
         shutting_down = 1;
 
         /* run the closure code which can be shared with reconfigure */
@@ -277,7 +277,7 @@ SignalEngine::doShutdown(time_t wait)
     }
 
 #if USE_WIN32_SERVICE
-        WIN32_svcstatusupdate(SERVICE_STOP_PENDING, (wait + 1) * 1000);
+    WIN32_svcstatusupdate(SERVICE_STOP_PENDING, (wait + 1) * 1000);
 #endif
 
     eventAdd("SquidShutdown", &StopEventLoop, this, (double) (wait + 1), 1, false);
@@ -299,7 +299,8 @@ SignalEngine::handleStoppedChild()
 
 #else
 
-    }  while (pid > 0 || (pid < 0 && errno == EINTR));
+    }
+    while (pid > 0 || (pid < 0 && errno == EINTR));
 #endif
 #endif
 }
@@ -939,7 +940,7 @@ mainReconfigureFinish(void *)
     }
 
     if (!InDaemonMode())
-        writePidFile();        /* write PID file */
+        writePidFile(); /* write PID file */
 
     reconfiguring = 0;
 }
@@ -1837,7 +1838,7 @@ watch_child(char *argv[])
         // signals to kids. Otherwise, wait for a kid to die or for a signal
         // to abort the blocking WaitForAnyPid() call.
         // With the WNOHANG option, we could check whether WaitForAnyPid() was
-        // aborted by a dying kid or a signal, but it is not required: The 
+        // aborted by a dying kid or a signal, but it is not required: The
         // next do/while loop will check again for any dying kids.
         int waitFlag = 0;
         if (masterSignaled())
@@ -1867,7 +1868,7 @@ watch_child(char *argv[])
                        " be restarted due to repeated, frequent failures",
                        kid->name().termedBuf(), kid->getPid());
             }
-        } else if (pid > 0){
+        } else if (pid > 0) {
             syslog(LOG_NOTICE, "Squid Parent: unknown child process %d exited", pid);
         }
 
index 59b1c38dd86657b1003565de2af2f34841c48b94..bddc09e348c12763de95e1a05ae24f925f9dc649 100644 (file)
@@ -1227,3 +1227,4 @@ WaitForOnePid(pid_t pid, PidStatus &status, int flags)
     return waitpid(pid, &status, flags);
 #endif
 }
+