For now signal hanlder use exit() which is not async-signal-safe, see man 7 signal-safety. It is better to use _exit() instead.
|
NO_SANITIZE static void |
|
sig_handler(int sig) |
|
{ |
|
switch (sig) { |
|
case SIGINT: |
|
exit(0); |
|
case SIGSEGV: |
|
__sanitizer_print_stack_trace(); |
|
break; |
|
} |
|
} |
Also, sometimes the crash- file is dumped if the user tries just to stop execution by SIGINT, so this file is not needed and is confusing.
For now signal hanlder use
exit()which is not async-signal-safe, seeman 7 signal-safety. It is better to use_exit()instead.luzer/luzer/luzer.c
Lines 147 to 157 in d2cb24d
Also, sometimes the
crash-file is dumped if the user tries just to stop execution by SIGINT, so this file is not needed and is confusing.