Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
6cbaa93b
Commit
6cbaa93b
authored
Oct 16, 1996
by
Bryan Henderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change treatment of sigaction structure again to include even more platforms.
Thanks D'Arcy.
parent
ec610a76
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-connect.c
+8
-2
No files found.
src/interfaces/libpq/fe-connect.c
View file @
6cbaa93b
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.1
0 1996/10/15 07:16:41
bryanh Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.1
1 1996/10/16 09:41:13
bryanh Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -338,13 +338,19 @@ freePGconn(PGconn *conn)
static
void
closePGconn
(
PGconn
*
conn
)
{
const
struct
sigaction
ignore_action
=
{
SIG_IGN
,
0
,
0
};
struct
sigaction
ignore_action
=
{
SIG_IGN
,
0
,
0
};
/* This is used as a constant, but not declared as such because the
sigaction structure is defined differently on different systems */
struct
sigaction
oldaction
;
/* If connection is already gone, that's cool. No reason for kernel
to kill us when we try to write to it. So ignore SIGPIPE signals.
*/
ignore_action
.
sa_handler
=
SIG_IGN
;
ignore_action
.
sa_mask
=
0
;
ignore_action
.
sa_flags
=
0
;
sigaction
(
SIGPIPE
,
(
struct
sigaction
*
)
&
ignore_action
,
&
oldaction
);
fputs
(
"X
\0
"
,
conn
->
Pfout
);
fflush
(
conn
->
Pfout
);
sigaction
(
SIGPIPE
,
&
oldaction
,
NULL
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment