]> Cypherpunks repositories - gostls13.git/commitdiff
os: document that Exit does not run deferred calls
authorAndrew Gerrand <adg@golang.org>
Mon, 7 Jan 2013 03:46:41 +0000 (14:46 +1100)
committerAndrew Gerrand <adg@golang.org>
Mon, 7 Jan 2013 03:46:41 +0000 (14:46 +1100)
Fixes #4101.

R=dsymonds, rsc
CC=golang-dev
https://golang.org/cl/7065048

src/pkg/os/proc.go

index 61545f4456a316aa8abec19d2571d299409a2a01..38c436ec54d2450e6125be36d4ae243d602d1153 100644 (file)
@@ -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) }