diff options
author | Russ Cox <rsc@golang.org> | 2009-06-01 22:14:39 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-06-01 22:14:39 -0700 |
commit | 9e0fec9c9c6b3d621dd64c943b050920cb8407e7 (patch) | |
tree | 874da14a9428e632f5d373e713631be06c233e65 /test/sigchld.go | |
parent | 278b1ab0537afd72832e5f6d8aa463ced75f1840 (diff) | |
download | go-9e0fec9c9c6b3d621dd64c943b050920cb8407e7.tar.gz go-9e0fec9c9c6b3d621dd64c943b050920cb8407e7.zip |
update Go tree to use new syscall package.
R=r
DELTA=713 (109 added, 386 deleted, 218 changed)
OCL=29707
CL=29722
Diffstat (limited to 'test/sigchld.go')
-rw-r--r-- | test/sigchld.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/test/sigchld.go b/test/sigchld.go index 417b833c70..5b95314df6 100644 --- a/test/sigchld.go +++ b/test/sigchld.go @@ -8,12 +8,7 @@ package main import "syscall" -func getpid() int64 { - r1, r2, err := syscall.Syscall(syscall.SYS_GETPID, 0, 0, 0); - return r1; -} - func main() { - syscall.Syscall(syscall.SYS_KILL, getpid(), syscall.SIGCHLD, 0); + syscall.Syscall(syscall.SYS_KILL, uintptr(syscall.Getpid()), syscall.SIGCHLD, 0); println("survived SIGCHLD"); } |