terraform/builtin/provisioners/local-exec
James Bardin ff2936bb3f Fix cancellation when spawning a subprocess
If the shell spawns a subprocess which doesn't close the output file
descriptors, the exec.Cmd will block on Wait() (see
golang.org/issue/18874). Use an os.Pipe to provide the command with a
real file descriptor so the exec package doesn't need to do the copy
manually. This in turn may block our own reading goroutine, but we can
select on that and leave it for cleanup later.
2017-02-01 12:01:29 -05:00
..
resource_provisioner.go Fix cancellation when spawning a subprocess 2017-02-01 12:01:29 -05:00
resource_provisioner_test.go Fix cancellation when spawning a subprocess 2017-02-01 12:01:29 -05:00