aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-06-11 15:03:13 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-06-11 15:03:13 -0300
commit088f12e8d4b201dae20de47974b8b2c2f1cabbc0 (patch)
treeb4f3c1e975264f42a3490deadc154a8e98a4b7af
parent558828c4eba4688740ecc7476cf6ef73e2c1ae67 (diff)
downloadkvmx-088f12e8d4b201dae20de47974b8b2c2f1cabbc0.tar.gz
kvmx-088f12e8d4b201dae20de47974b8b2c2f1cabbc0.tar.bz2
Shell: disown fix
-rwxr-xr-xkvmx6
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmx b/kvmx
index 35944c7..9650d01 100755
--- a/kvmx
+++ b/kvmx
@@ -1741,15 +1741,15 @@ function kvmx_shell {
# Process command, disown version, stdout are preserved
$APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} &
- disown
+ disown -h
fi
else
# Process command, nohup version
- nohup $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1}
+ #nohup $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1}
# Process command, disown version
$APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} &
- disown
+ disown -h
fi
fi
done