Skip to content
Snippets Groups Projects
Commit 53b9d02c authored by Simon McVittie's avatar Simon McVittie
Browse files

utils: Log a warning if we reset a custom signal handler


When our executables get run via execve(), any custom signal
handlers get reset to SIG_DFL by the kernel: nothing else would make
sense, because the pointer to a custom signal handler would no longer be
valid in the new executable's address space. As a result, we start up
with all signals set to either SIG_IGN or SIG_DFL.

_srt_unblock_signals() is meant to be called sufficiently early that
it will not reset any custom signal handlers, because there should not
yet be any. Log a warning if that assumption is broken.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent a41e109e
No related branches found
No related tags found
1 merge request!619CLI tools: unblock and unignore signals during startup
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