Skip to content
Snippets Groups Projects
Unverified Commit 7861af99 authored by Petr Vorel's avatar Petr Vorel
Browse files

ping: Make ping_rts struct static

This allows accessing global_rts->exiting in sigexit() signal handler
after main() has exited. Problem occurred on aarch64, which occasionally
delivered signal after main() has exited, which causes segfault.

Fixes: b3a41a6e ("ping: move global variables to runtime config structure")
Fixes: https://github.com/iputils/iputils/issues/423
Closes: https://github.com/iputils/iputils/pull/425



Reported-by: linzhanglong
Suggested-by: default avatarCyril Hrubis <chrubis@suse.cz>
Reviewed-by: default avatarCyril Hrubis <chrubis@suse.cz>
Signed-off-by: default avatarPetr Vorel <pvorel@suse.cz>
parent 09f1b370
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment