Fix signal handler
The functions "exit" and "fprintf" 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".
I guess that a different program design will be needed for your function "interrupt_record". https://sourceforge.jp/cvs/view/julius/julius4/adinrec/adinrec.c?revision=1.4&view=markup https://sourceforge.jp/cvs/view/julius/julius4/adintool/adintool.c?revision=1.8&view=markup
The functions "exit" and "fprintf" 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".
I guess that a different program design will be needed for your function "interrupt_record".
https://sourceforge.jp/cvs/view/julius/julius4/adinrec/adinrec.c?revision=1.4&view=markup
https://sourceforge.jp/cvs/view/julius/julius4/adintool/adintool.c?revision=1.8&view=markup