Fix signal handler
Brought to you by:
achaldhir
The functions "sprintf" and "exit" do not belong to the list of async-signal-safe functions.
See section "2.4.3 Signal Actions" from the document "2.4 Signal Concepts".
http://opengroup.org/onlinepubs/009695399/functions/xsh_chap02_04.html#tag_02_04_03
http://opengroup.org/onlinepubs/009695399/functions/_Exit.html
A different program design will be needed for your function "catch_int".
Logged In: NO
Thanks,
Sorry was little busy in something else. Would go through that document.