Run programs with "setsid"
This commit is contained in:
parent
e1b69b417b
commit
34d17d1e99
1 changed files with 11 additions and 12 deletions
3
q-run
3
q-run
|
@ -22,6 +22,5 @@ elif [[ "$1" == "--preview" ]]; then
|
|||
echo "Will run $1"
|
||||
elif [[ "$1" == "--run" ]]; then
|
||||
shift
|
||||
(nohup "$1" 2>/dev/null &)
|
||||
sleep 0.01
|
||||
setsid "$1"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue