p-gen / smenu

smenu started as a lightweight and flexible terminal menu generator, but quickly evolved into a powerful and versatile CLI selection tool for interactive or scripting use.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix signal handler

elfring opened this issue · comments

The function “fputs” does not belong to the list of async-signal-safe functions.
I guess that a different program design will be needed for your function “sig_handler”.

commented

Hi, the fputs are there to print fatal error messages and are almost immediately followed by an exit(EXIT_FAILURE); so I guess the risk is low.

I'll however add it to my TODO list. Thank you for your remark.

Would you like to consider other software design options?