[12:01:30] <subj_rs> беда
[12:04:44] <subj_rs> не получается подцепить обработчик прерывания через ada.interrupts в демонизированной ада-программе. Единственное что нашел по этому поводу:
If I daemonize the process (i.e., fork a new process and detach it
from console), the signal handlers become lost for some reason.
I was discussing that with AdaCore and it turned out that setting
handlers for daemonized processes is more complex and I didn't have
time to figure the correct apporach yet. I can provide more details
on this if somebody is interested to look into this.

программа при регистрации обработчика затыкается вот так:
[pid 31807] futex(0x1a3515c, FUTEX_WAIT_PRIVATE, 5, NULL

(это из strace)

Что интересно - если обработчик на sigterm не вешать - посылка sigterm не убивает демон
[12:06:54] <subj_rs> или лучше сразу в почтовую рассылку?
[12:12:44] <subj_rs> да, лучше в рассылку
[12:29:04] <subj_rs> done, отправил