(
Library.put(\jackmidipid, "a2jmidid -e -u".unixCmd);
ShutDown.add { "kill -9 %".format(Library.at(\jackmidipid)).systemCmd };
)
It turns out this case isn’t critical (because a2jmidid
doesn’t open multiple instances, and stopping JACK kills off a2jmidid too).
But it’s untidy. Language shutdown doesn’t wait for shutdown actions to complete… not sure what to do about that.
(Other untidiness: Quit SC while a2jmidid is still open, and SC hangs until you quit the JACK server – which wouldn’t happen if it completed the ShutDown action.)
hjh