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

Commitb55d49f

Browse files
author
Bryan Henderson
committed
Add comments about the diversity of signal functionality. Came from
Makefile.global.
1 parent87f5fda commitb55d49f

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

‎src/backend/libpq/pqsignal.c

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,35 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/libpq/pqsignal.c,v 1.3 1996/11/06 08:48:32 scrappy Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/libpq/pqsignal.c,v 1.4 1996/11/18 02:25:09 bryanh Exp $
1212
*
1313
* NOTES
1414
*This shouldn't be in libpq, but the monitor and some other
1515
*things need it...
1616
*
17-
*-------------------------------------------------------------------------
18-
*/
17+
* A NOTE ABOUT SIGNAL HANDLING ACROSS THE VARIOUS PLATFORMS.
18+
*
19+
* config.h defines the macro USE_POSIX_SIGNALS for some platforms and
20+
* not for others. This file and pqsignal.h use that macro to decide
21+
* how to handle signalling.
22+
*
23+
* signal(2) handling - this is here because it affects some of
24+
* the frontend commands as well as the backend server.
25+
*
26+
* Ultrix and SunOS provide BSD signal(2) semantics by default.
27+
*
28+
* SVID2 and POSIX signal(2) semantics differ from BSD signal(2)
29+
* semantics. We can use the POSIX sigaction(2) on systems that
30+
* allow us to request restartable signals (SA_RESTART).
31+
*
32+
* Some systems don't allow restartable signals at all unless we
33+
* link to a special BSD library.
34+
*
35+
* We devoutly hope that there aren't any systems that provide
36+
* neither POSIX signals nor BSD signals. The alternative
37+
* is to do signal-handler reinstallation, which doesn't work well
38+
* at all.
39+
* ------------------------------------------------------------------------*/
1940
#include<postgres.h>
2041

2142
#include<libpq/pqsignal.h>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp