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

Do not sleep the full kill_delay when using send_interrupt and the current application shuts down by itself #671

Open
istyf opened this issue Nov 1, 2024 · 0 comments · May be fixed by #672

Comments

@istyf
Copy link

istyf commented Nov 1, 2024

Currently when send_interrupt is configured to true (for linux and unix only), the killCmd function sleeps for kill_delay before following up with a kill command as well.

If the target process honours the initial interrupt, cleans up and exits by itself, there is no need to sleep for a delay to try to kill a process that is no longer there. Air should instead wake up and continue as soon as the process has closed down, and only go on to send a kill to processes that ignore the interrupt or take too long to shut down.

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 a pull request may close this issue.

1 participant