Commit 0f64a6ef authored by Andrew Gerrand's avatar Andrew Gerrand

os: document that Exit does not run deferred calls

Fixes #4101.

R=dsymonds, rsc
CC=golang-dev
https://golang.org/cl/7065048
parent 41f32e0d
......@@ -31,4 +31,6 @@ func Getgroups() ([]int, error) {
// Exit causes the current program to exit with the given status code.
// Conventionally, code zero indicates success, non-zero an error.
// The program terminates immediately; deferred functions are
// not run.
func Exit(code int) { syscall.Exit(code) }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment