-
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
Stop file system watchers on application quit to prevent exit code !== 0 #7504
Stop file system watchers on application quit to prevent exit code !== 0 #7504
Conversation
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
4ea8042
to
deb65d4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
userCreateResourceTemplatesInjectable
has a watch that doesn't appear to get closed but I can't reproduce the bug even when adding/removing template files
Maybe that is the last watcher and which allows the application to close normally. Good find, can you please open a PR to explicitly close that watcher too? |
Doesn't it close normally after this PR? |
This PR looks like it closes the kubeconfig watches and the watching of extensions. I would say that we should close all watcher explicitly, just to be safe. |
Agreed, just wanted to confirm you weren't still seeing the error.
|
…= 0 (#7504) * fix: Dispose the kubeconfig watcher when application quits Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> * fix: Dispose the extension watcher when application quits Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> --------- Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
…= 0 (#7504) * fix: Dispose the kubeconfig watcher when application quits Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> * fix: Dispose the extension watcher when application quits Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> --------- Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
On application quit, the watchers should be stopped to ensure clean exit. Previously the application quit resulted in exit code
134
. Before #3465, the exit code remained0
but the watchers weren't cleaned explicitly.