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
03f96364
Commit
03f96364
authored
May 30, 2006
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove pqsignalinquire(), which is unused and has portability issues.
parent
d898de1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
30 deletions
+2
-30
src/interfaces/libpq/pqsignal.c
src/interfaces/libpq/pqsignal.c
+1
-27
src/interfaces/libpq/pqsignal.h
src/interfaces/libpq/pqsignal.h
+1
-3
No files found.
src/interfaces/libpq/pqsignal.c
View file @
03f96364
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/interfaces/libpq/pqsignal.c,v 1.2
5 2006/03/05 15:59:10 momjian
Exp $
* $PostgreSQL: pgsql/src/interfaces/libpq/pqsignal.c,v 1.2
6 2006/05/30 15:57:56 tgl
Exp $
*
*
* NOTES
* NOTES
* This shouldn't be in libpq, but the monitor and some other
* This shouldn't be in libpq, but the monitor and some other
...
@@ -44,29 +44,3 @@ pqsignal(int signo, pqsigfunc func)
...
@@ -44,29 +44,3 @@ pqsignal(int signo, pqsigfunc func)
return
oact
.
sa_handler
;
return
oact
.
sa_handler
;
#endif
/* !HAVE_POSIX_SIGNALS */
#endif
/* !HAVE_POSIX_SIGNALS */
}
}
pqsigfunc
pqsignalinquire
(
int
signo
)
{
#ifndef WIN32
#if !defined(HAVE_POSIX_SIGNALS)
pqsigfunc
old_sigfunc
;
int
old_sigmask
;
/* Prevent signal handler calls during test */
old_sigmask
=
sigblock
(
sigmask
(
signo
));
old_sigfunc
=
signal
(
signo
,
SIG_DFL
);
signal
(
signo
,
old_sigfunc
);
sigblock
(
old_sigmask
);
return
old_sigfunc
;
#else
struct
sigaction
oact
;
if
(
sigaction
(
signo
,
NULL
,
&
oact
)
<
0
)
return
SIG_ERR
;
return
oact
.
sa_handler
;
#endif
/* !HAVE_POSIX_SIGNALS */
#else
return
SIG_DFL
;
#endif
}
src/interfaces/libpq/pqsignal.h
View file @
03f96364
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $PostgreSQL: pgsql/src/interfaces/libpq/pqsignal.h,v 1.2
0 2006/03/05 15:59:10 momjian
Exp $
* $PostgreSQL: pgsql/src/interfaces/libpq/pqsignal.h,v 1.2
1 2006/05/30 15:57:56 tgl
Exp $
*
*
* NOTES
* NOTES
* This shouldn't be in libpq, but the monitor and some other
* This shouldn't be in libpq, but the monitor and some other
...
@@ -24,6 +24,4 @@ typedef void (*pqsigfunc) (int);
...
@@ -24,6 +24,4 @@ typedef void (*pqsigfunc) (int);
extern
pqsigfunc
pqsignal
(
int
signo
,
pqsigfunc
func
);
extern
pqsigfunc
pqsignal
(
int
signo
,
pqsigfunc
func
);
extern
pqsigfunc
pqsignalinquire
(
int
signo
);
#endif
/* PQSIGNAL_H */
#endif
/* PQSIGNAL_H */
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