Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(956)

Delta Between Two Patch Sets: src/pkg/os/proc.go

Issue 6610066: code review 6610066: os: Added documentation to the Exit function
Left Patch Set: Created 11 years, 5 months ago
Right Patch Set: diff -r 1571ae601243 https://code.google.com/p/go/ Created 11 years, 5 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 // Process etc. 5 // Process etc.
6 6
7 package os 7 package os
8 8
9 import "syscall" 9 import "syscall"
10 10
(...skipping 13 matching lines...) Expand all
24 func Getegid() int { return syscall.Getegid() } 24 func Getegid() int { return syscall.Getegid() }
25 25
26 // Getgroups returns a list of the numeric ids of groups that the caller belongs to. 26 // Getgroups returns a list of the numeric ids of groups that the caller belongs to.
27 func Getgroups() ([]int, error) { 27 func Getgroups() ([]int, error) {
28 gids, e := syscall.Getgroups() 28 gids, e := syscall.Getgroups()
29 return gids, NewSyscallError("getgroups", e) 29 return gids, NewSyscallError("getgroups", e)
30 } 30 }
31 31
32 // Exit causes the current program to exit with the given status code. 32 // Exit causes the current program to exit with the given status code.
33 // Conventionally, code zero indicates success, non-zero an error. 33 // Conventionally, code zero indicates success, non-zero an error.
34 //
35 // Note that if Exit is called after issuing defer statements, those defer state ments will
36 // never be executed as Exit causes the program to terminate before the end of t he current
37 // function is reached.
r 2012/11/02 00:38:18 now the spec has the necessary covering prose, we
34 func Exit(code int) { syscall.Exit(code) } 38 func Exit(code int) { syscall.Exit(code) }
LEFTRIGHT
« no previous file | no next file » | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b