Re: [Jack-Devel] Jack shutdown action

PrevNext  Index
DateSat, 17 Mar 2012 16:47:09 -0400
From Paul Davis <[hidden] at linuxaudiosystems dot com>
ToFons Adriaensen <[hidden] at linuxaudio dot org>
CcJack Developers <[hidden] at lists dot jackaudio dot org>
In-Reply-ToFons Adriaensen [Jack-Devel] Jack shutdown action
Follow-UpFons Adriaensen Re: [Jack-Devel] Jack shutdown action
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.

--p
PrevNext  Index

1332017239.18547_0.ltw:2,a <CAFa_cK=tWzyfDMncxubtou75JZVcf6AuZsSA3V3nEk-iMhSDEA at mail dot gmail dot com>