Skip to content
This repository has been archived by the owner on Feb 27, 2020. It is now read-only.

Commit

Permalink
Removed left-over code from before guest-tools used native/system/ pa…
Browse files Browse the repository at this point in the history
…ckage
  • Loading branch information
jonasfj committed Apr 7, 2017
1 parent be14101 commit aa45f7a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 127 deletions.
27 changes: 0 additions & 27 deletions commands/qemu-guest-tools/guesttools.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"io"
"net/http"
"os"
"os/exec"
"path/filepath"
goruntime "runtime"
"strings"
Expand Down Expand Up @@ -380,29 +379,3 @@ func (g *guestTools) doExecShell(ID string, command []string, tty bool) {

handler.Terminated(result)
}

func pipeCommand(cmd *exec.Cmd, handler *interactive.ShellHandler) error {
// Set pipes
cmd.Stdin = handler.StdinPipe()
cmd.Stdout = handler.StdoutPipe()
cmd.Stderr = handler.StderrPipe()

// Start the shell, this must finished before we can call Kill()
err := cmd.Start()

// Start communication
handler.Communicate(nil, func() error {
// If cmd.Start() failed, then we don't have a process, but we start
// the communication flow anyways.
if cmd.Process != nil {
return cmd.Process.Kill()
}
return nil
})

if err == nil {
err = cmd.Wait()
}

return err
}
86 changes: 0 additions & 86 deletions commands/qemu-guest-tools/pty_unix.go

This file was deleted.

14 changes: 0 additions & 14 deletions commands/qemu-guest-tools/pty_unsupported.go

This file was deleted.

0 comments on commit aa45f7a

Please sign in to comment.