]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Shell: disown fix
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 11 Jun 2018 18:03:13 +0000 (15:03 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 11 Jun 2018 18:03:13 +0000 (15:03 -0300)
kvmx

diff --git a/kvmx b/kvmx
index 35944c71c487424c144a7aa49ce7cb8bafd33d83..9650d012c8206d63ae35f9287fa6fbe57114fe2d 100755 (executable)
--- 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