Skip to content
This repository was archived by the owner on Nov 14, 2024. It is now read-only.

Exit with non-zero code on interrupt#1

Closed
vaygr wants to merge 1 commit intovain:masterfrom
vaygr:interrupt-exit-fix
Closed

Exit with non-zero code on interrupt#1
vaygr wants to merge 1 commit intovain:masterfrom
vaygr:interrupt-exit-fix

Conversation

@vaygr
Copy link
Copy Markdown

@vaygr vaygr commented Feb 11, 2018

The manual page says countty would exit with a non-zero code once interrupted (e.g. via SIGINT), which is currently not the case.

This fixes it by reusing the running variable, which can be changed for several signal handlers too, including successful exit, if needed.

@vain
Copy link
Copy Markdown
Owner

vain commented Feb 11, 2018

Whoops, sorry. Thanks!

I think it's easier to just use exit(EXIT_FAILURE) at the bottom of the file. There is only one signal handler now and it will probably stay that way for quite some time. :-)

@vain vain closed this in 799a31f Feb 11, 2018
@vaygr
Copy link
Copy Markdown
Author

vaygr commented Feb 11, 2018

Thanks!

@vaygr vaygr deleted the interrupt-exit-fix branch February 11, 2018 12:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants