]> granicus.if.org Git - postgresql/blobdiff - src/backend/postmaster/syslogger.c
pgindent run for 9.4
[postgresql] / src / backend / postmaster / syslogger.c
index 4731ab73fed16d10aaf3afd8c2c7a7d98e597b35..f89a5339e0f3255b0376a78ba150562a5ab6d628 100644 (file)
@@ -67,7 +67,7 @@
 
 
 /*
- * GUC parameters.     Logging_collector cannot be changed after postmaster
+ * GUC parameters.  Logging_collector cannot be changed after postmaster
  * start, but the rest can change at SIGHUP.
  */
 bool           Logging_collector = false;
@@ -193,7 +193,7 @@ SysLoggerMain(int argc, char *argv[])
        /*
         * If we restarted, our stderr is already redirected into our own input
         * pipe.  This is of course pretty useless, not to mention that it
-        * interferes with detecting pipe EOF.  Point stderr to /dev/null. This
+        * interferes with detecting pipe EOF.  Point stderr to /dev/null. This
         * assumes that all interesting messages generated in the syslogger will
         * come through elog.c and will be sent to write_syslogger_file.
         */
@@ -203,7 +203,7 @@ SysLoggerMain(int argc, char *argv[])
 
                /*
                 * The closes might look redundant, but they are not: we want to be
-                * darn sure the pipe gets closed even if the open failed.      We can
+                * darn sure the pipe gets closed even if the open failed.  We can
                 * survive running with stderr pointing nowhere, but we can't afford
                 * to have extra pipe input descriptors hanging around.
                 *
@@ -249,7 +249,7 @@ SysLoggerMain(int argc, char *argv[])
 
        /*
         * If possible, make this process a group leader, so that the postmaster
-        * can signal any child processes too.  (syslogger probably never has any
+        * can signal any child processes too.  (syslogger probably never has any
         * child processes, but for consistency we make all postmaster child
         * processes do this.)
         */
@@ -419,7 +419,7 @@ SysLoggerMain(int argc, char *argv[])
 
                /*
                 * Calculate time till next time-based rotation, so that we don't
-                * sleep longer than that.      We assume the value of "now" obtained
+                * sleep longer than that.  We assume the value of "now" obtained
                 * above is still close enough.  Note we can't make this calculation
                 * until after calling logfile_rotate(), since it will advance
                 * next_rotation_time.
@@ -523,7 +523,7 @@ SysLoggerMain(int argc, char *argv[])
                                        (errmsg("logger shutting down")));
 
                        /*
-                        * Normal exit from the syslogger is here.      Note that we
+                        * Normal exit from the syslogger is here.  Note that we
                         * deliberately do not close syslogFile before exiting; this is to
                         * allow for the possibility of elog messages being generated
                         * inside proc_exit.  Regular exit() will take care of flushing
@@ -652,8 +652,8 @@ SysLogger_Start(void)
                                 */
                                ereport(LOG,
                                                (errmsg("redirecting log output to logging collector process"),
-                                                errhint("Future log output will appear in directory \"%s\".",
-                                                                Log_directory)));
+                               errhint("Future log output will appear in directory \"%s\".",
+                                               Log_directory)));
 
 #ifndef WIN32
                                fflush(stdout);
@@ -670,6 +670,7 @@ SysLogger_Start(void)
                                close(syslogPipe[1]);
                                syslogPipe[1] = -1;
 #else
+
                                /*
                                 * open the pipe in binary mode and make sure stderr is binary
                                 * after it's been dup'ed into, to avoid disturbing the pipe
@@ -1354,7 +1355,7 @@ set_next_rotation_time(void)
        /*
         * The requirements here are to choose the next time > now that is a
         * "multiple" of the log rotation interval.  "Multiple" can be interpreted
-        * fairly loosely.      In this version we align to log_timezone rather than
+        * fairly loosely.  In this version we align to log_timezone rather than
         * GMT.
         */
        rotinterval = Log_RotationAge * SECS_PER_MINUTE;        /* convert to seconds */