mirror of
https://github.com/restic/restic.git
synced 2026-10-11 20:47:12 +00:00
Fix rclone (scoop shim) and sftp issue due to detached console on Windows
This commit is contained in:
1 parent
59370b6062
commit
d9c9415cfd
2 files changed
+13
-1
No files matched your search
@@ -11,7 +11,7 @@ import (
|
||||
func startForeground(cmd *exec.Cmd) (bg func() error, err error) {
|
||||
// just start the process and hope for the best
|
||||
cmd.SysProcAttr = &syscall.SysProcAttr{}
|
||||
cmd.SysProcAttr.CreationFlags = windows.DETACHED_PROCESS
|
||||
cmd.SysProcAttr.CreationFlags = windows.CREATE_NEW_PROCESS_GROUP
|
||||
err = cmd.Start()
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "cmd.Start")
|
||||
|
||||
Reference in new issue
Block a user