diff options
author | Daniel Milde <daniel@milde.cz> | 2021-09-05 21:04:21 +0200 |
---|---|---|
committer | Daniel Milde <daniel@milde.cz> | 2021-09-05 21:04:21 +0200 |
commit | 3286bfc2c5c2d49817da74189e00f30d18e9c8f1 (patch) | |
tree | 4d93e7e5582de182280c4701e8f66e6c298d9e6e /tui/exec_windows.go | |
parent | fb01cc1e929f6c87cfa182c9d68157f0506f954a (diff) |
suspend the application instead of stopping
fixes #90
Diffstat (limited to 'tui/exec_windows.go')
-rw-r--r-- | tui/exec_windows.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/tui/exec_windows.go b/tui/exec_windows.go index c5b6baf..1cba4cf 100644 --- a/tui/exec_windows.go +++ b/tui/exec_windows.go @@ -5,21 +5,6 @@ import ( "os/exec"
)
-// Execute runs given bin path via exec.Command call
-func Execute(argv0 string, argv []string, envv []string) error {
- // Windows does not support exec syscall.
- cmd := exec.Command(argv0, argv...)
- cmd.Stdout = os.Stdout
- cmd.Stderr = os.Stderr
- cmd.Stdin = os.Stdin
- cmd.Env = envv
- err := cmd.Run()
- if err == nil {
- os.Exit(0)
- }
- return err
-}
-
func getShellBin() string {
shellbin, ok := os.LookupEnv("COMSPEC")
if !ok {
|