Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swap child and parent: prevent pplog immediate interrupt #13

Conversation

vitalyshatskikh
Copy link
Contributor

@vitalyshatskikh vitalyshatskikh commented Jun 10, 2024

Problem:
If we get rid of signal handling at all, pplog will be stopped immediately on ctrl-c in the terminal, so it will not print logs during command shutdown

Solution:
Handle interrupt signal and allow target to shutdown gracefully, stop immediatly on the second interrupt

UPD:
need update tests, it works fine on local machine, but CI failed because of "set: can't access tty; job control turned off"

UPD2:
Github actions run without TTY, but there is a workaround: comment on issue 241

@vitalyshatskikh vitalyshatskikh changed the title Swap child and parent: prevent pplog immediate interrupt DRAFT: Swap child and parent: prevent pplog immediate interrupt Jun 10, 2024
@vitalyshatskikh vitalyshatskikh mentioned this pull request Jun 10, 2024
4 tasks
@vitalyshatskikh vitalyshatskikh changed the title DRAFT: Swap child and parent: prevent pplog immediate interrupt Swap child and parent: prevent pplog immediate interrupt Jun 10, 2024
@michurin
Copy link
Owner

Do you have the problem on non-widows os? I have a test for linux. It seems everything is ok

@vitalyshatskikh
Copy link
Contributor Author

When I created the PR, I was absolutely sure that I had checked Ubuntu on my machine.
But now I checked again and the problem is not reproduced... my bad)))

Known Windows problem - ok, let's close this PR and continue in #14

@vitalyshatskikh vitalyshatskikh deleted the swap-child-and-parent-prevent-pplog-immediate-interrupt branch June 18, 2024 06:37
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.

2 participants