Some conversations with cjwatson on IRC lead to two potential fixes to address the issue:
1. < cjwatson> mathiaz: I meant calling sigaction in the daemon itself
2. < cjwatson> or create a tiny C wrapper that does struct sigaction sa; memset (&sa, 0, sizeof sa); sa.sa_handler = SIG_DFL; sigemptyset (&sa.sa_mask); sa.sa_flags = 0; sigaction (SIGHUP, &sa, NULL); and then execs the program
It seems that option 1. may not be possible if erlang doesn't support signals.
Some conversations with cjwatson on IRC lead to two potential fixes to address the issue:
1. < cjwatson> mathiaz: I meant calling sigaction in the daemon itself
2. < cjwatson> or create a tiny C wrapper that does struct sigaction sa;
memset (&sa, 0, sizeof sa); sa.sa_handler = SIG_DFL;
sigemptyset (&sa.sa_mask); sa.sa_flags = 0; sigaction
(SIGHUP, &sa, NULL); and then execs the program
It seems that option 1. may not be possible if erlang doesn't support signals.