Skip to content

Fix signal handler for soft-quitting lichess-bot#1156

Merged
AttackingOrDefending merged 2 commits into
lichess-bot-devs:masterfrom
MarkZH:soft-quit-fix
Dec 5, 2025
Merged

Fix signal handler for soft-quitting lichess-bot#1156
AttackingOrDefending merged 2 commits into
lichess-bot-devs:masterfrom
MarkZH:soft-quit-fix

Conversation

@MarkZH
Copy link
Copy Markdown
Collaborator

@MarkZH MarkZH commented Nov 16, 2025

Type of pull request:

  • Bug fix
  • Feature
  • Other

Description:

Fixes SIGINT handler so that lichess-bot can be quit while multiple games are playing without stopping other games.

Related Issues:

Closes #1155

Checklist:

  • I have read and followed the contribution guidelines.
  • I have added necessary documentation (if applicable).
  • The changes pass all existing tests.

Screenshots/logs (if applicable):

@MarkZH MarkZH marked this pull request as ready for review December 2, 2025 05:49
@MarkZH
Copy link
Copy Markdown
Collaborator Author

MarkZH commented Dec 2, 2025

This needs more testing, but I think this might work.

@MarkZH
Copy link
Copy Markdown
Collaborator Author

MarkZH commented Dec 5, 2025

I think this is ready for review and/or merging. The users in the issue thread #1155 also think so, too. The only side effect I've noticed is the printing of "Received SIGINT. Terminating client" multiple times on the first SIGINT (one for each process).

@AttackingOrDefending AttackingOrDefending merged commit dba17f8 into lichess-bot-devs:master Dec 5, 2025
17 of 23 checks passed
@MarkZH MarkZH deleted the soft-quit-fix branch December 6, 2025 21:41
r0950336 pushed a commit to r0950336/lichess-bot that referenced this pull request Dec 31, 2025
* Delete condition that is always False

* Remove terminated condition from API giveup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sometimes moves fail to transmit only when a soft shutdown has been triggered

2 participants