Re: [Jack-Devel] Jack shutdown action

PrevNext  Index
DateSat, 17 Mar 2012 21:08:45 +0000
From Fons Adriaensen <[hidden] at linuxaudio dot org>
ToPaul Davis <[hidden] at linuxaudiosystems dot com>
CcJack Developers <[hidden] at lists dot jackaudio dot org>
In-Reply-ToPaul Davis Re: [Jack-Devel] Jack shutdown action
Follow-UpPaul Davis Re: [Jack-Devel] Jack shutdown action
On Sat, Mar 17, 2012 at 04:47:09PM -0400, Paul Davis wrote:
> On Sat, Mar 17, 2012 at 4:44 PM, Fons Adriaensen <[hidden]> wrote:
> > A simple question (reading jack.h doesn't answer it):
> >
> > If a client does not register a shutdown callback using
> > jack_on_shutdown(), what is supposed to happen when the
> > server is terminated ?
> >
> > Apparently the process containing the client is terminated
> > in some way, but can this be relied on ?
> 
> the server will not terminate any clients. the thread(s) created by
> libjack will exit at some point when/if they discover that the server
> is gone, but that may never happen.
> 
> the whole point of the shutdown callback is that  the client has no
> way to differentiate between "the server has gone" and "the server
> hasn't called me in a very, very long time.

Indeed. I'm asking because I noticed that an app (in development
and not having a shutdown callback) terminates if the server is
stopped, even while it has other active threads. None of its code
watching stop conditions is ever called.  Removing the shutdown
handler in other apps (e.g. jaaa) leads to the same result. Now I'm
pretty sure that did not happen before. It looks as if Jack's thread
is calling exit() or something similar when it terminates... Have 
there been recent changes in that area ?

Ciao,

-- 
FA

Vor uns liegt ein weites Tal, die Sonne scheint - ein Glitzerstrahl.
PrevNext  Index

1332018537.19218_0.ltw:2,a <20120317210845.GB406 at linuxaudio dot org>