diff options
Diffstat (limited to 'tools/execprog/execprog.go')
| -rw-r--r-- | tools/execprog/execprog.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/execprog/execprog.go b/tools/execprog/execprog.go index 9ffe39119..d82ea514e 100644 --- a/tools/execprog/execprog.go +++ b/tools/execprog/execprog.go @@ -53,8 +53,7 @@ func main() { fmt.Fprintf(os.Stderr, "failed to create execution environment: %v\n", err) os.Exit(1) } - copy(env.In, p.SerializeForExec()) - output, strace, failed, hanged, err := env.Exec() + output, strace, failed, hanged, err := env.Exec(p) fmt.Printf("result: failed=%v hanged=%v err=%v\n\n%s", failed, hanged, err, output) if *flagStrace { fmt.Printf("strace output:\n%s", strace) |
