Skip to content

Commit

Permalink
Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
hupe1980 committed Aug 18, 2021
1 parent bd74c84 commit d4a9ce4
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tubes/process.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package tubes

import (
"io"
"os"
"os/exec"
)
Expand Down Expand Up @@ -58,15 +57,6 @@ func (p *Process) Start() error {
return p.cmd.Start()
}

func (p Process) Interactive() error {
go io.Copy(p.tube.stdin, os.Stdin)
go io.Copy(os.Stdout, p.tube.stdout)
go io.Copy(os.Stderr, p.tube.stderr)

// Wait for the process to exit
return p.cmd.Wait()
}

// Kill causes the Process to exit immediately. Kill does not wait until
// the Process has actually exited. This only kills the Process itself,
// not any other processes it may have started.
Expand Down

0 comments on commit d4a9ce4

Please sign in to comment.