mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-19 22:09:13 +00:00
This respawns the process instead of the script. The advantage is that when the AppImage process is killed, UG is killed as well, eg. in this case: ``` UltraGrid-continuous-x86_64.AppImage -t testcard & (sleep 3; kill $!) ``` Otherwise just the parent process (the shell) is killed, leaving the child (UG) running on background, which is undesirable. See also: <https://stackoverflow.com/questions/8533377/why-child-process-still-alive-after-parent-process-was-killed-in-linux> For the above command, `kill -SIGTERM -$!` would be required to do the job, but the parent shell process keeps "running" in the background and `bg` needs to be run.