On Mon, 12 Mar 2012, Gilles Filippini wrote:

Hi,

Timidity has some known problems working with pulseaudio [0], and one of the recommanded workarounds [1] is to launch it from the user session instead of running it as a system service. The problem is that - even if timidity wasn't launched as a daemon - it doesn't termminate itself at the end of the user session. Instead it daemonizes itself and stands running. This simply shouldn't happen when launched without the 'D' flag.

thanks,

_g.

[0] <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=563252>
[1] <https://bugs.launchpad.net/ubuntu/+source/timidity/+bug/210472/comments/16>

Interesting, and thank you for pointing me to that Ubuntu bug.

There's some suspicious behavior regarding SIGHUP in the ALSA module, which runs independent of the -D flag:

/* reset all when SIGHUP is received */
static RETSIGTYPE sig_reset(int sig)
{
        if (alsactx.active) {
                stop_sequencer(&alsactx);
                server_reset();
        }
        signal(SIGHUP, sig_reset);
}

and later
        signal(SIGHUP, sig_reset);

I'm not sure what the intention is there, but it sounds plausible this should be daemon-only behavior. I'll try to take a closer look at it soon.

There's also a protocol of some sort to detect when a user session is exiting (I believe using X or D-Bus); we should probably implement that if X or D-Bus is available, which would make the use case you describe smoother.

--
Geoffrey Thomas
http://ldpreload.com
geo...@ldpreload.com



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to