]> Cypherpunks repositories - gostls13.git/commit
syscall: use Getpgid to emulate Getpgrp on linux
authorShenghou Ma <minux@golang.org>
Tue, 24 Mar 2015 17:11:43 +0000 (13:11 -0400)
committerMinux Ma <minux@golang.org>
Tue, 24 Mar 2015 19:47:20 +0000 (19:47 +0000)
commit7a88c6465b0369506dcc9129d783550fd13c678c
treed2f28fd914c4aa5bca8e19bd12e67c3748a3c476
parentb8caed823b39b5a86b694f9ec60a8b43323248e8
syscall: use Getpgid to emulate Getpgrp on linux

Fixes newly introduced test on linux/arm64 because linux/arm64 doesn't
have the getpgrp syscall. Getpgid(0) is documented to be equivalent to
Getpgrp.

Change-Id: I8f30f4f8de8c32fe04a29c9c4a9330d4e4e6b46d
Signed-off-by: Shenghou Ma <minux@golang.org>
Reviewed-on: https://go-review.googlesource.com/8022
Reviewed-by: Aram Hăvărneanu <aram@mgk.ro>
Reviewed-by: Rob Pike <r@golang.org>
src/syscall/syscall_linux.go
src/syscall/zsyscall_linux_386.go
src/syscall/zsyscall_linux_amd64.go
src/syscall/zsyscall_linux_arm.go
src/syscall/zsyscall_linux_arm64.go
src/syscall/zsyscall_linux_ppc64.go
src/syscall/zsyscall_linux_ppc64le.go