- Notifications
You must be signed in to change notification settings - Fork28
Commit78aaa0e
committed
Don't reset latch in ConditionVariablePrepareToSleep().
It's not OK to do that without calling CHECK_FOR_INTERRUPTS().Let the next wait loop deal with it, following the usual pattern.One consequence of this bug was that a SIGTERM delivered in a verynarrow timing window could leave a parallel worker process waitingforever for a condition variable that will never be signaled, afteran error was raised in other process.The code is a bit different in the stable branches due to commit1321509, making problems less likely there. No back-patch for now,but we may finish up deciding to make a similar change after morediscussion.Author: Thomas MunroReviewed-by: Shawn DebnathReported-by: Tomas VondraDiscussion:https://postgr.es/m/CA%2BhUKGJOm8zZHjVA8svoNT3tHY0XdqmaC_kHitmgXDQM49m1dA%40mail.gmail.com1 parent05f18c6 commit78aaa0e
1 file changed
+0
-6
lines changedLines changed: 0 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
96 |
| - | |
97 |
| - | |
98 |
| - | |
99 |
| - | |
100 |
| - | |
101 |
| - | |
102 | 96 |
| |
103 | 97 |
| |
104 | 98 |
| |
|
0 commit comments
Comments
(0)