CTRL_C_EVENT
(which didn’t work in my testing either) instead of CTRL_BREAK_EVENT
.
CTRL_C_EVENT
(which didn’t work in my testing either) instead of CTRL_BREAK_EVENT
.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/32021.
See the guideline for information on the review process.
Type | Reviewers |
---|---|
ACK | maflcko, BrandonOdiwuor, hebasto |
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
52- node.process.terminate()
53+ if platform.system() == 'Windows':
54+ # Don't call Python's terminate() since it calls
55+ # TerminateProcess(), which unlike SIGTERM doesn't allow
56+ # bitcoind to perform any shutdown logic.
57+ os.kill(node.process.pid, signal.CTRL_BREAK_EVENT)
CTRL_BREAK_EVENT
only exists on Windows: https://docs.python.org/3/library/signal.html#signal.CTRL_BREAK_EVENT.