Skip to content

Add retry handler to handle EINTR signals when writing to the console. - #18

Merged
KazDragon merged 1 commit into
KazDragon:masterfrom
PerdixOfMars:fix/handle-asio-interrupts
Sep 8, 2026
Merged

KazDragon merged 1 commit into
KazDragon:masterfrom
PerdixOfMars:fix/handle-asio-interrupts

Conversation

@PerdixOfMars

@PerdixOfMars PerdixOfMars commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Terminal applications might send a number of e.g. SIGWINCH signals if the size of a terminal changes. If this happens during the syscall portion of a write, this might cause an EINTR response, which currently causes a thrown and unhandled exception.

This patch change handles the response and retries the write.

@KazDragon
KazDragon merged commit 018bb90 into KazDragon:master Sep 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants