Remove some unnecessary pqsignal() calls to shave a few cycles off
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 19 Feb 2002 19:54:43 +0000 (19:54 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 19 Feb 2002 19:54:43 +0000 (19:54 +0000)
backend startup.

src/backend/tcop/postgres.c

index 66fdaacf902a6c64460b8bd9131b479d1e6618b4..179f69d585f193e8bec8c36a39b0721fff9cdfe5 100644 (file)
@@ -1478,9 +1478,10 @@ PostgresMain(int argc, char *argv[], const char *username)
         *
         * Also note: it's best not to use any signals that are SIG_IGNored in
         * the postmaster.      If such a signal arrives before we are able to
-        * change the handler to non-SIG_IGN, it'll get dropped.  If
-        * necessary, make a dummy handler in the postmaster to reserve the
-        * signal.
+        * change the handler to non-SIG_IGN, it'll get dropped.  Instead,
+        * make a dummy handler in the postmaster to reserve the signal.
+        * (Of course, this isn't an issue for signals that are locally generated,
+        * such as SIGALRM and SIGPIPE.)
         */
 
        pqsignal(SIGHUP, SigHupHandler);        /* set flag to read config file */
@@ -1508,10 +1509,6 @@ PostgresMain(int argc, char *argv[], const char *username)
         */
        pqsignal(SIGCHLD, SIG_DFL); /* system() requires this on some
                                                                 * platforms */
-       pqsignal(SIGTTIN, SIG_DFL);
-       pqsignal(SIGTTOU, SIG_DFL);
-       pqsignal(SIGCONT, SIG_DFL);
-       pqsignal(SIGWINCH, SIG_DFL);
 
        pqinitmask();
 
@@ -1626,7 +1623,7 @@ PostgresMain(int argc, char *argv[], const char *username)
        if (!IsUnderPostmaster)
        {
                puts("\nPOSTGRES backend interactive interface ");
-               puts("$Revision: 1.245 $ $Date: 2002/01/10 01:11:45 $\n");
+               puts("$Revision: 1.246 $ $Date: 2002/02/19 19:54:43 $\n");
        }
 
        /*