diff options
Diffstat (limited to 'src/runtime/debug/stack.go')
| -rw-r--r-- | src/runtime/debug/stack.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/debug/stack.go b/src/runtime/debug/stack.go index 7072d29c96..8dfea52d34 100644 --- a/src/runtime/debug/stack.go +++ b/src/runtime/debug/stack.go @@ -38,6 +38,8 @@ func Stack() []byte { // SetCrashOutput duplicates f's file descriptor, so the caller may safely // close f as soon as SetCrashOutput returns. // To disable this additional crash output, call SetCrashOutput(nil). +// If called concurrently with a crash, some in-progress output may be written +// to the old file even after an overriding SetCrashOutput returns. func SetCrashOutput(f *os.File) error { fd := ^uintptr(0) if f != nil { |
