Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8e2998d

Browse files
committed
Remove some unnecessary pqsignal() calls to shave a few cycles off
backend startup.
1 parent6e546c2 commit8e2998d

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

‎src/backend/tcop/postgres.c

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.245 2002/01/10 01:11:45 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.246 2002/02/19 19:54:43 tgl Exp $
1212
*
1313
* NOTES
1414
* this is the "main" module of the postgres backend and
@@ -1478,9 +1478,10 @@ PostgresMain(int argc, char *argv[], const char *username)
14781478
*
14791479
* Also note: it's best not to use any signals that are SIG_IGNored in
14801480
* the postmaster.If such a signal arrives before we are able to
1481-
* change the handler to non-SIG_IGN, it'll get dropped. If
1482-
* necessary, make a dummy handler in the postmaster to reserve the
1483-
* signal.
1481+
* change the handler to non-SIG_IGN, it'll get dropped. Instead,
1482+
* make a dummy handler in the postmaster to reserve the signal.
1483+
* (Of course, this isn't an issue for signals that are locally generated,
1484+
* such as SIGALRM and SIGPIPE.)
14841485
*/
14851486

14861487
pqsignal(SIGHUP,SigHupHandler);/* set flag to read config file */
@@ -1508,10 +1509,6 @@ PostgresMain(int argc, char *argv[], const char *username)
15081509
*/
15091510
pqsignal(SIGCHLD,SIG_DFL);/* system() requires this on some
15101511
* platforms */
1511-
pqsignal(SIGTTIN,SIG_DFL);
1512-
pqsignal(SIGTTOU,SIG_DFL);
1513-
pqsignal(SIGCONT,SIG_DFL);
1514-
pqsignal(SIGWINCH,SIG_DFL);
15151512

15161513
pqinitmask();
15171514

@@ -1626,7 +1623,7 @@ PostgresMain(int argc, char *argv[], const char *username)
16261623
if (!IsUnderPostmaster)
16271624
{
16281625
puts("\nPOSTGRES backend interactive interface ");
1629-
puts("$Revision: 1.245 $ $Date: 2002/01/10 01:11:45 $\n");
1626+
puts("$Revision: 1.246 $ $Date: 2002/02/19 19:54:43 $\n");
16301627
}
16311628

16321629
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp