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
2820f05e
Commit
2820f05e
authored
Aug 15, 2004
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Specify SA_NOCLDSTOP when enabling SIGCHLD, per suggestion from
Oliver Jowett.
parent
2284cfa2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
src/backend/libpq/pqsignal.c
src/backend/libpq/pqsignal.c
+5
-1
src/interfaces/libpq/pqsignal.c
src/interfaces/libpq/pqsignal.c
+5
-1
No files found.
src/backend/libpq/pqsignal.c
View file @
2820f05e
...
...
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/libpq/pqsignal.c,v 1.3
4 2004/05/29 22:48:19
tgl Exp $
* $PostgreSQL: pgsql/src/backend/libpq/pqsignal.c,v 1.3
5 2004/08/15 05:25:10
tgl Exp $
*
* NOTES
* This shouldn't be in libpq, but the monitor and some other
...
...
@@ -159,6 +159,10 @@ pqsignal(int signo, pqsigfunc func)
act
.
sa_flags
=
0
;
if
(
signo
!=
SIGALRM
)
act
.
sa_flags
|=
SA_RESTART
;
#ifdef SA_NOCLDSTOP
if
(
signo
==
SIGCHLD
)
act
.
sa_flags
|=
SA_NOCLDSTOP
;
#endif
if
(
sigaction
(
signo
,
&
act
,
&
oact
)
<
0
)
return
SIG_ERR
;
return
oact
.
sa_handler
;
...
...
src/interfaces/libpq/pqsignal.c
View file @
2820f05e
...
...
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/interfaces/libpq/pqsignal.c,v 1.2
0 2004/02/02 00:11:31 momjian
Exp $
* $PostgreSQL: pgsql/src/interfaces/libpq/pqsignal.c,v 1.2
1 2004/08/15 05:25:10 tgl
Exp $
*
* NOTES
* This shouldn't be in libpq, but the monitor and some other
...
...
@@ -35,6 +35,10 @@ pqsignal(int signo, pqsigfunc func)
act
.
sa_flags
=
0
;
if
(
signo
!=
SIGALRM
)
act
.
sa_flags
|=
SA_RESTART
;
#ifdef SA_NOCLDSTOP
if
(
signo
==
SIGCHLD
)
act
.
sa_flags
|=
SA_NOCLDSTOP
;
#endif
if
(
sigaction
(
signo
,
&
act
,
&
oact
)
<
0
)
return
SIG_ERR
;
return
oact
.
sa_handler
;
...
...
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