From: Vinu Rajashekhar Date: Thu, 29 Jul 2010 01:26:29 +0000 (-0700) Subject: test/sigchld.go: use syscall.Kill instead of a combination X-Git-Tag: weekly.2010-07-29~13 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1ea5d154075033742ed2017950466af094d862f7;p=gostls13.git test/sigchld.go: use syscall.Kill instead of a combination of syscall.Syscall and syscall.SYS_KILL. In RTEMS, there is no syscall.Syscall support, but it does support POSIX signals. So, if this testcase is changed to use syscall.Kill, then it would run fine on RTEMS, when using gccgo. R=rsc, iant CC=golang-dev https://golang.org/cl/1863046 --- diff --git a/test/sigchld.go b/test/sigchld.go index 3887e2d024..214e72b622 100644 --- a/test/sigchld.go +++ b/test/sigchld.go @@ -10,6 +10,6 @@ package main import "syscall" func main() { - syscall.Syscall(syscall.SYS_KILL, uintptr(syscall.Getpid()), syscall.SIGCHLD, 0); + syscall.Kill(syscall.Getpid(), syscall.SIGCHLD); println("survived SIGCHLD"); }