slim
slim copied to clipboard
Fix signal handler
I guess that a different program design will be needed for your function “CatchSignal”.
- The function “exit” does not belong to the list of async-signal-safe functions.
- The logging statement is inappropriate there.