yabar
yabar copied to clipboard
Fix signal handler
trafficstars
The function "exit" does not belong to the list of async-signal-safe functions. I guess that a different program design will be needed for your function "ya_sighandler".
Can't exit() just be changed to _Exit() to conform to the spec or am I missing something?
The mentioned function replacement could work.
Would you like to consider other software design options?