-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Improve kill signal management #2194
Comments
@ChillarAnand thanks for the issue report. Anything in the Glances log file ? |
There are couple of exceptions and error messages. But I am not sure if they are related. Posted entire log here. https://gist.github.com/ChillarAnand/07e61f31cf89d794cb9615b4e1210399. |
Steps to reproduce: Open new tab in terminal. I think terminal is trying to close glances. Since glances was started with sudo, it is not able to kill the process. It works fine, if we run glances without sudo. |
@ChillarAnand Could you just confirm if you are able to reproduce the issue with maybe another terminal manager? |
@RazCrimson I was experiencing this issue on Mac with the Terminal application. Just tried with iTerm on Mac and I am not able to reproduce it. |
@ChillarAnand i found the issue. When a terminal is closed, it sent a SIGHUP signal to the running process. Glances only catch the SIGINT signal. Correction will be done on the develop branch. Thanks for the issue report @ChillarAnand ! |
Corrected on the develop branch. Will be released in Glances 3.4.0. |
Describe the bug
Initially I found glances was consuming 100% CPU and thought it was a performance issue. Later I found that it is stale process.
To Reproduce
When glances is run in the terminal interactively, if
CTRL + C
is used to quit glances or when the terminal is closed forcefully, once in a while a stale process is left behind. I am not able to reproduce it consistently. I have been using glances from years but I am seeing this issue only from few weeks.Expected behavior
No stale process should be there.
Desktop (please complete the following information):
Additional context
As a temporary workaround, I am running glances using the following command.
The text was updated successfully, but these errors were encountered: