os: document that StartProcess puts files into blocking mode

Fixes #43894

Change-Id: I2add7b8a4f6ae69a5ef1c48703fde21a4b74307c
Reviewed-on: https://go-review.googlesource.com/c/go/+/321852
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
Ian Lance Taylor 2021-05-21 12:50:52 -07:00
parent e4d7525c3e
commit 76b2d6afed

View file

@ -54,6 +54,9 @@ type ProcAttr struct {
// standard error. An implementation may support additional entries, // standard error. An implementation may support additional entries,
// depending on the underlying operating system. A nil entry corresponds // depending on the underlying operating system. A nil entry corresponds
// to that file being closed when the process starts. // to that file being closed when the process starts.
// On Unix systems, StartProcess will change these File values
// to blocking mode, which means that SetDeadline will stop working
// and calling Close will not interrupt a Read or Write.
Files []*File Files []*File
// Operating system-specific process creation attributes. // Operating system-specific process creation attributes.