From 4eea572c352b84f52a9a477f9ddc4716cc2ebb76 Mon Sep 17 00:00:00 2001 From: geens Date: Tue, 12 Aug 2025 16:31:08 +0200 Subject: [PATCH] Fixed autorun --- autorun.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) mode change 100644 => 100755 autorun.sh diff --git a/autorun.sh b/autorun.sh old mode 100644 new mode 100755 index 36f88f6..e5e7803 --- a/autorun.sh +++ b/autorun.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/bash git stash git pull @@ -10,4 +10,7 @@ cargo run --release --bin audio_engine & AUDIO_ENGINE_PID=$! cargo run --release --bin gui -- -f& -GUI_PID=$! \ No newline at end of file +GUI_PID=$! + +wait -n "$JACK_PID" "$AUDIO_ENGINE_PID" "$GUI_PID" +kill "$JACK_PID" "$AUDIO_ENGINE_PID" "$GUI_PID" \ No newline at end of file