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:
parent
41f32e0dff
commit
0f64a6ef8d
@ -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) }
|
||||||
|
Loading…
Reference in New Issue
Block a user