From: Andrew Gerrand Date: Mon, 7 Jan 2013 03:46:41 +0000 (+1100) Subject: os: document that Exit does not run deferred calls X-Git-Tag: go1.1rc2~1460 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0f64a6ef8db6a025fe2bb3d1756d312e9ea7d702;p=gostls13.git os: document that Exit does not run deferred calls Fixes #4101. R=dsymonds, rsc CC=golang-dev https://golang.org/cl/7065048 --- diff --git a/src/pkg/os/proc.go b/src/pkg/os/proc.go index 61545f4456..38c436ec54 100644 --- a/src/pkg/os/proc.go +++ b/src/pkg/os/proc.go @@ -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) }