Re: dpkg sets SIGHUP to SIG_IGN
Hi!
On Sun, 2012-11-25 at 12:00:19 +0100, Dominik George wrote:
> at BSP Essen, we are currently investigating Bug #692295 [1].
>
> The problem is that CouchDB, an erlang service, expects SIGHUP to issue a
> clean shutdown. This is what the start/stop script sends to the process.
>
> When the start script is run by dpkg after package installation, it gets
> dpkg's SigIgn mask inherited, and this includes ignoring SIGHUP. Erlang
> itself does not provide a mechanism to control signals (sigh ...).
> The question is can we somehow prevent dpkg from setting SIGHUP to SIG_IGN
> for the child process?
dpkg does not set SIGHUP, that's apt. And this really seems like
should be handled from CouchDB (somehow), if it expects SIGHUP to work
in a certain way, it should make sure to set it up correctly.
Thanks,
Guillem
Reply to: