Fix direct execution of AppImages

Fetch a list of all child PIDs before forwarding the termination signal.
Once the main process is terminated, forward that term signal to all found children also (if they are still running)
This commit is contained in:
Josh.5
2023-09-11 12:21:23 +12:00
parent 0981af0a17
commit 771c47d602
2 changed files with 20 additions and 2 deletions

View File

@@ -36,6 +36,7 @@ echo " - Found initial sunshine-run PID '${process_pid}'."
# Send a INT signal to the PID
echo " - Sending SIGINT to PID '${process_pid}'."
kill -INT "${process_pid}" || true
sleep 1
# Run a loop to check for any other "sunshine-run" processes and send them also a INT signal
echo " - Checking for other sunshine-run processes..."