Skip to content

kill -SIGINT <perfspect pid> is not cleanly exiting during 'metrics' command #96

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

Closed
harp-intel opened this issue Nov 19, 2024 · 0 comments · Fixed by #97
Closed

kill -SIGINT <perfspect pid> is not cleanly exiting during 'metrics' command #96

harp-intel opened this issue Nov 19, 2024 · 0 comments · Fixed by #97
Labels
bug Something isn't working

Comments

@harp-intel
Copy link
Contributor

Ctrl-C in the terminal works because it sends SIGINT to the perfspect process and all children. 'kill' is sending SIGINT only to the perfspect process. Using the trick of negating the parent process pid in the kill command to send SIGINT to all processes in the process group doesn't work when the perfspect process is disconnected from its parent with the 'disown' command as is necessary when run through some scripting tools, e.g., ansible.

Potential solution is for the perfspect process to catch the SIGINT signal and re-send to its children.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant