I heard that printf is not safe to call in a signal handler so why is that and what exactly is the consequences of doing so since I tried calling it several times with different signals and it seems to be ok. So what exactly I missed here.
- And what makes a function safe to call in a signal handler ?.
void signal_handler(int signal){
printf("Got signal :%d", signal);
}