terraform/helper/wrappedstreams
James Bardin cd65b28da0 don't call os.NewFile on unknown FDs
os.NewFile was called on file descriptors 3, 4, and 5 during every init,
in case this process happened to be running inside panicwrap. If the
runtime has already chosen one of these file descriptors to use
internally, starting polling on them can cause the runtime to crash.

Initialize the file descriptors lazily, only if we know that they belong
to us, after Wrapped is checked.
2020-04-04 15:46:19 -04:00
..
streams.go don't call os.NewFile on unknown FDs 2020-04-04 15:46:19 -04:00
streams_other.go don't call os.NewFile on unknown FDs 2020-04-04 15:46:19 -04:00
streams_windows.go