Skip to content

Commit 59182d9

Browse files
committed
Add comment about synchronous signals.
1 parent 0150dbd commit 59182d9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/interfaces/libpq/fe-secure.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.35 2004/01/09 02:02:43 momjian Exp $
14+
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.36 2004/01/09 02:17:15 momjian Exp $
1515
*
1616
* NOTES
1717
* The client *requires* a valid server certificate. Since
@@ -1099,7 +1099,11 @@ check_sigpipe_handler(void)
10991099
void
11001100
sigpipe_handler_ignore_send(int signo)
11011101
{
1102-
/* If we have gotten a SIGPIPE outside send(), exit */
1102+
/*
1103+
* If we have gotten a SIGPIPE outside send(), exit.
1104+
* Synchronous signals are delivered to the thread
1105+
* that caused the signal.
1106+
*/
11031107
if (!PQinSend())
11041108
exit(128 + SIGPIPE); /* typical return value for SIG_DFL */
11051109
}

0 commit comments

Comments
 (0)