1
0
mirror of https://github.com/golang/go synced 2024-11-17 16:14:42 -07:00

os: document that Exit does not run deferred calls

Fixes #4101.

R=dsymonds, rsc
CC=golang-dev
https://golang.org/cl/7065048
This commit is contained in:
Andrew Gerrand 2013-01-07 14:46:41 +11:00
parent 41f32e0dff
commit 0f64a6ef8d

View File

@ -31,4 +31,6 @@ func Getgroups() ([]int, error) {
// Exit causes the current program to exit with the given status code. // Exit causes the current program to exit with the given status code.
// Conventionally, code zero indicates success, non-zero an error. // 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) } func Exit(code int) { syscall.Exit(code) }