David Adler wrote:
> On Sun, Jan 17, 2010 at 7:53 PM, Ralf Mardorf
> <[email protected]> wrote:
>   
>> David Adler wrote:
>>     
>>> This requires that qjackctl isn't running, so the
>>> full version for scripted pseudo-on-the-fly
>>> pachbay change is:
>>>
>>>
>>> TEST=`ps ax | grep qjackctl | grep -v grep | wc -l`
>>>  if [ $TEST = 0 ]
>>>  then
>>>      killall qjackctl
>>>  fi
>>> qjackctl -a /path/to/patchbaydefenition.xml
>>>       
>> I can't speak for this example, but for my actual start-session script
>> "killall" sometimes isn't okay. I added "-9 -w" and now it seems to be
>> okay all the time. I kill all apps before I launch them, even if they
>> aren't running, to avoid that there are unwanted processes running after
>> a crash.
>>     
>
> you're right, the whole test is obsolete. It just avoids a
> potentially irritating error message.
>
> I never had issues with SIGTERM (the killall default, -15).
> Not too sure, but -w seems to be a good thing when
> restarting the application immediately afterwards,
> no problems yet without it, though.

And I guess here you are right. I had trouble especially when restarting 
applications immediately after a crash or after closing them manually, 
jackd sometimes needs time to finish and because I don't run QjackCtl, 
jackd won't be closed automatically.

"On POSIX-compliant platforms, SIGKILL is the signal sent to a process 
to cause it to terminate immediately." (Wiki)
"On POSIX-compliant platforms, SIGTERM is the signal sent to a process 
to request its termination." (Wiki)

Dunno, I didn't tested --wait without SIGKILL. It "feels" as if it's 
more safe to chose SIGKILL and --wait together.

Did you pointed out that for QjackCtl "Options > Execute script after 
Shutdown: killall jackd" has to be unchecked?! IIUC "pseudo-on-the-fly" 
should mean that jackd shouldn't be terminated, to avoid trouble with 
running audio applications.

Anyway, I'm not sure what to recommend to store and restore ALSA MIDI 
connections, but for JACK audio (and JACK MIDI, didn't know that JACK 
MIDI can be handled too by jack_snapshot), I still prefer jack_snapshot, 
even if QjackCtl's patchbay should be okay now, most times I don't need 
QjackCtl, because I'm using Qtractor with it's own "Connect"-window.

@ hughlovette gmail.com:
http://tapas.affenbande.org/wordpress/?page_id=14
_______________________________________________
64studio-users mailing list
[email protected]
http://lists.64studio.com/mailman/listinfo/64studio-users

Reply via email to