../../src/demos/signal.c: In function ‘custom_logger’: ../../src/demos/signal.c:20:5: warning: call to ‘fprintf’ from within signal handler [CWE-479] [-Wanalyzer-unsafe-call-within-signal-handler] 20 | fprintf(stderr, "LOG: %s", msg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ‘main’: event 1 | | 32 | signal(SIGINT, handler); | | ^~~~~~~~~~~~~~~~~~~~~~~ | | | | | (1) registering signal handler | [...time passes...] event 2 | |cc1: | (2): signal delivered to process | +--> ‘handler’: event 3 | | 25 | custom_logger("got signal"); | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | | (3) calling ‘custom_logger’ from ‘handler’ | +--> ‘custom_logger’: event 4 | | 20 | fprintf(stderr, "LOG: %s", msg); | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | | (4) call to ‘fprintf’ from within signal handler |