diff options
author | Andrew Gerrand <adg@golang.org> | 2010-04-19 13:12:11 +1000 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2010-04-19 13:12:11 +1000 |
commit | 65b6c6db04e27d11ecf9bd7bd4269bdb8e73f5e1 (patch) | |
tree | 4d7c73dbe4dd2389df7eb4c558ae104c463612e5 /src/pkg/syscall/syscall_linux.go | |
parent | 585e169ff2ad541242b78b4a5756b424cf6927e4 (diff) | |
download | golang-65b6c6db04e27d11ecf9bd7bd4269bdb8e73f5e1.tar.gz |
syscall: match linux Setsid function signature to darwin
SETSID does return an errno - any reason why it has been done this
way in zsyscall_linux_* ? Otherwise it should be the same as darwin.
From SETSID(2) on my Linux box:
ERRORS
On error, -1 is returned, and errno is set.
Fixes issue 730
R=rsc
CC=golang-dev
http://codereview.appspot.com/878047
Diffstat (limited to 'src/pkg/syscall/syscall_linux.go')
-rw-r--r-- | src/pkg/syscall/syscall_linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/syscall/syscall_linux.go b/src/pkg/syscall/syscall_linux.go index 058a76d69..82401ac3d 100644 --- a/src/pkg/syscall/syscall_linux.go +++ b/src/pkg/syscall/syscall_linux.go @@ -591,7 +591,7 @@ func PtraceDetach(pid int) (errno int) { return ptrace(PTRACE_DETACH, pid, 0, 0) //sys Sethostname(p []byte) (errno int) //sys Setpgid(pid int, pgid int) (errno int) //sys Setrlimit(resource int, rlim *Rlimit) (errno int) -//sys Setsid() (pid int) +//sys Setsid() (pid int, errno int) //sys Settimeofday(tv *Timeval) (errno int) //sys Setuid(uid int) (errno int) //sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, errno int) |