Skip to content

♻️ Trap Interrupt signal for more graceful shutdown#197

Merged
ndrufin-crto merged 1 commit into
criteo:mainfrom
teikitel:main
Apr 28, 2026
Merged

♻️ Trap Interrupt signal for more graceful shutdown#197
ndrufin-crto merged 1 commit into
criteo:mainfrom
teikitel:main

Conversation

@teikitel
Copy link
Copy Markdown
Contributor

@teikitel teikitel commented Apr 10, 2026

The current implementation is mainly problematic on Windows where a CTRL+C interruption requested by the user would kill or leave the user's terminal unresponsive.

Here we catch interruptions, print a cosmetic new line and always restore the cursor.

It allows for "normal" termination on Windows and fixes cursor disappearance issues.

The current implementation is mainly problematic on Windows where a CTRL+C interruption requested by the user would kill or leave the user's terminal unresponsive.

Here we catch interruptions, print a cosmetic new line and always restore the cursor.

It allows for "normal" termination on Windows and fixes cursor disappearance issues.

Change-Id: Ic0077857b5213cc828fda09a4a25da6bb60ab364
@ndrufin-crto ndrufin-crto merged commit 436fb2a into criteo:main Apr 28, 2026
8 checks passed
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.

3 participants