From 6f96cf2793830fa33f18d154ac360eb8e53b79ea Mon Sep 17 00:00:00 2001 From: Adam Shannon Date: Fri, 13 Jul 2018 13:44:51 -0500 Subject: [PATCH] os/exec: document ExtraFiles is not supported on windows Fixes #26182 Change-Id: I1181e191f4742f166c9b67a6f41332a237cf0ede Reviewed-on: https://go-review.googlesource.com/123855 Reviewed-by: Ian Lance Taylor --- src/os/exec/exec.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/os/exec/exec.go b/src/os/exec/exec.go index 41fbf96370..88b0a91699 100644 --- a/src/os/exec/exec.go +++ b/src/os/exec/exec.go @@ -113,6 +113,8 @@ type Cmd struct { // ExtraFiles specifies additional open files to be inherited by the // new process. It does not include standard input, standard output, or // standard error. If non-nil, entry i becomes file descriptor 3+i. + // + // ExtraFiles is not supported on Windows. ExtraFiles []*os.File // SysProcAttr holds optional, operating system-specific attributes.