Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 874e8ce

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 parent 8eac198 commit 874e8ce

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
#ifdef WIN32
@@ -315,10 +314,6 @@ secure_write(Port *port, void *ptr, size_t len)
315314
{
316315
ssize_t n;
317316

318-
#ifndef WIN32
319-
pqsigfunc oldsighandler = pqsignal(SIGPIPE, SIG_IGN);
320-
#endif
321-
322317
#ifdef USE_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-
#ifndef WIN32
367-
pqsignal(SIGPIPE, oldsighandler);
368-
#endif
369-
370361
return n;
371362
}
372363

0 commit comments

Comments
 (0)