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
feb48f41
Commit
feb48f41
authored
Jun 29, 2000
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add SIGFPE to list of signals never to block. #ifdef all signals in
that list to cope with platforms that don't have them all.
parent
932d1e5f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
3 deletions
+25
-3
src/backend/libpq/pqsignal.c
src/backend/libpq/pqsignal.c
+25
-3
No files found.
src/backend/libpq/pqsignal.c
View file @
feb48f41
...
...
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/pqsignal.c,v 1.1
6 2000/06/28 03:31:41
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/pqsignal.c,v 1.1
7 2000/06/29 02:17:42
tgl Exp $
*
* NOTES
* This shouldn't be in libpq, but the monitor and some other
...
...
@@ -61,13 +61,35 @@ pqinitmask(void)
#ifdef HAVE_SIGPROCMASK
sigemptyset
(
&
UnBlockSig
);
sigfillset
(
&
BlockSig
);
/*
* Unmark those signals that should never be blocked.
* Some of these signal names don't exist on all platforms. Most do,
* but might as well ifdef them all for consistency...
*/
#ifdef SIGTRAP
sigdelset
(
&
BlockSig
,
SIGTRAP
);
#endif
#ifdef SIGABRT
sigdelset
(
&
BlockSig
,
SIGABRT
);
#endif
#ifdef SIGILL
sigdelset
(
&
BlockSig
,
SIGILL
);
#endif
#ifdef SIGFPE
sigdelset
(
&
BlockSig
,
SIGFPE
);
#endif
#ifdef SIGSEGV
sigdelset
(
&
BlockSig
,
SIGSEGV
);
#endif
#ifdef SIGBUS
sigdelset
(
&
BlockSig
,
SIGBUS
);
sigdelset
(
&
BlockSig
,
SIGTRAP
);
sigdelset
(
&
BlockSig
,
SIGCONT
);
#endif
#ifdef SIGSYS
sigdelset
(
&
BlockSig
,
SIGSYS
);
#endif
#ifdef SIGCONT
sigdelset
(
&
BlockSig
,
SIGCONT
);
#endif
#else
UnBlockSig
=
0
;
BlockSig
=
sigmask
(
SIGHUP
)
|
sigmask
(
SIGQUIT
)
|
...
...
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