Commit 52a1c3d
fix(standalone): revert Windows signal forwarding to TerminateProcess
CTRL_BREAK_EVENT delivery is unreliable on Windows — the scheduler's
threading.Event.wait doesn't wake on SIGBREAK from a different thread
context, so the parent's children-watcher loop never empties and Ctrl+C
hangs the whole tree. Reported by Chip; reproduced on the AWS WorkSpace.
The orphan-postgres bug that motivated the CTRL_BREAK_EVENT switch is
already addressed by the other half of fde7321 — children call
ensure_standalone_setup() instead of get_server(), so they no longer
register PIDs in pgserver's on-disk handle list. Force-killing them
is safe; only the parent owns the pgserver handle and exits via the
normal atexit path.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 82d4828 commit 52a1c3d
1 file changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
153 | 157 | | |
154 | | - | |
| 158 | + | |
155 | 159 | | |
156 | 160 | | |
157 | 161 | | |
| |||
0 commit comments