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 | 9abf1a0b69c63bdcd701d9fcf7efaf3f160598b5 (patch) | |
tree | 874da14a9428e632f5d373e713631be06c233e65 /test/sigchld.go | |
parent | 79bae470aa8248f29b8a6542a1d742b732b76435 (diff) | |
download | go-9abf1a0b69c63bdcd701d9fcf7efaf3f160598b5.tar.gz |
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 417b833c7..5b95314df 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"); } |