I'm working on linux, and I'd like to implement a sort of "panic" button in a patch.
It would kill pd itself, then kill jack daemon and finally kill a pair of processes. After that it would wait for a pair of seconds and restart pd.
I made a small bash script that does it all, it works when launched from the console, but fails when launched using a [geee/shell] object. Looks like pd can't kill himself and the result is that a second instance of pd is launched.
Any suggestion on how to achieve this?