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

Commit874e8ce

Browse files
committed
Remove bogus manipulation of SIGPIPE; the backend already runs with
SIGPIPE disabled, and does not need to waste two syscalls per I/O on it.
1 parent8eac198 commit874e8ce

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

‎src/backend/libpq/be-secure.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $Header: /cvsroot/pgsql/src/backend/libpq/be-secure.c,v 1.25 2003/02/03 22:29:11 tgl Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/libpq/be-secure.c,v 1.26 2003/02/14 00:18:41 tgl Exp $
1515
*
1616
* Since the server static private key ($DataDir/server.key)
1717
* will normally be stored unencrypted so that the database
@@ -83,7 +83,6 @@
8383
#include<ctype.h>
8484

8585
#include"libpq/libpq.h"
86-
#include"libpq/pqsignal.h"
8786
#include"miscadmin.h"
8887

8988
#ifdefWIN32
@@ -315,10 +314,6 @@ secure_write(Port *port, void *ptr, size_t len)
315314
{
316315
ssize_tn;
317316

318-
#ifndefWIN32
319-
pqsigfuncoldsighandler=pqsignal(SIGPIPE,SIG_IGN);
320-
#endif
321-
322317
#ifdefUSE_SSL
323318
if (port->ssl)
324319
{
@@ -363,10 +358,6 @@ secure_write(Port *port, void *ptr, size_t len)
363358
#endif
364359
n=send(port->sock,ptr,len,0);
365360

366-
#ifndefWIN32
367-
pqsignal(SIGPIPE,oldsighandler);
368-
#endif
369-
370361
returnn;
371362
}
372363

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp