summaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xact.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/access/transam/xact.c')
-rw-r--r--src/backend/access/transam/xact.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c
index d85e3139082..b8764012607 100644
--- a/src/backend/access/transam/xact.c
+++ b/src/backend/access/transam/xact.c
@@ -2755,7 +2755,7 @@ AbortTransaction(void)
* handler. We do this fairly early in the sequence so that the timeout
* infrastructure will be functional if needed while aborting.
*/
- PG_SETMASK(&UnBlockSig);
+ sigprocmask(SIG_SETMASK, &UnBlockSig, NULL);
/*
* check the current transaction state
@@ -5115,7 +5115,7 @@ AbortSubTransaction(void)
* handler. We do this fairly early in the sequence so that the timeout
* infrastructure will be functional if needed while aborting.
*/
- PG_SETMASK(&UnBlockSig);
+ sigprocmask(SIG_SETMASK, &UnBlockSig, NULL);
/*
* check the current transaction state