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

daemons: Log POSIX signal names alongside their numbers in handlers #6226

Conversation

last-genius
Copy link
Contributor

Closes #6225

@@ -53,7 +53,9 @@ let on_shutdown signal =
let dbg = "shutdown" in
Debug.with_thread_associated dbg
(fun () ->
debug "xcp-networkd caught signal %d; performing cleanup actions." signal ;
debug "xcp-networkd caught signal %s (%d); performing cleanup actions."
Fmt.(to_to_string Dump.signal signal)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's nice... will it print things like SIGTERM?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes! waiting for a host to reboot to test this out outside of utop

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was working on a fix before the bug got opened... #6228

@last-genius
Copy link
Contributor Author

Closing in favor of more thorough #6228

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.

daemons expose internal signal number in failure log
3 participants