[Pkg-erlang-devel] Bug#692295: APT ignoring SIGHUP and passing on to children

Dominik George nik at naturalnet.de
Sun Nov 25 15:51:55 UTC 2012


Hi,

I am currently trying to create a workaround to fix bug #692295 [1].

The problem is that CouchDB uses SIGHUP to trigger a clean shutdown (don't 
ask me why ...) and this signal is ignored by apt. So, when apt runs dpkg 
to install couchdb, and dpkg runs the CouchDB init script, the SigIgn mask 
containing SIGHUP is passed on all the way down to the Erlang VM.

I was first positive that this is an Erlang issue because the VM does not 
reset the ignore mask, but then I tried a work around: I added the 
following line to the start script of couchdb

    trap '' HUP

expecting that this would make the shell reset the handler, but it doesn't 
work, so I suspect that apt uses some other mechanism to ignore the 
signal.

Can any of you give me a hint on how I could possibly get rid of the 
ignore mask on the way to the couchdb daemon?

Cheers,
Nik

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=692295



More information about the Pkg-erlang-devel mailing list