diff options
Diffstat (limited to 'src/backend/storage/lmgr/proc.c')
-rw-r--r-- | src/backend/storage/lmgr/proc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/backend/storage/lmgr/proc.c b/src/backend/storage/lmgr/proc.c index 0980f7de88b..02f0c62c1d3 100644 --- a/src/backend/storage/lmgr/proc.c +++ b/src/backend/storage/lmgr/proc.c @@ -571,9 +571,14 @@ LockWaitCancel(void) { LWLockId partitionLock; + HOLD_INTERRUPTS(); + /* Nothing to do if we weren't waiting for a lock */ if (lockAwaited == NULL) + { + RESUME_INTERRUPTS(); return; + } /* Turn off the deadlock timer, if it's still running (see ProcSleep) */ disable_sig_alarm(false); @@ -612,6 +617,8 @@ LockWaitCancel(void) * wakeup signal isn't harmful, and it seems not worth expending cycles to * get rid of a signal that most likely isn't there. */ + + RESUME_INTERRUPTS(); } |