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 f97962ca1b3..035b1ac5b51 100644 --- a/src/backend/storage/lmgr/proc.c +++ b/src/backend/storage/lmgr/proc.c @@ -608,9 +608,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); @@ -649,6 +654,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(); } |