aboutsummaryrefslogtreecommitdiff
path: root/test/sigchld.go
diff options
context:
space:
mode:
authorVinu Rajashekhar <vinutheraj@gmail.com>2010-07-28 18:26:29 -0700
committerRuss Cox <rsc@golang.org>2010-07-28 18:26:29 -0700
commit1ea5d154075033742ed2017950466af094d862f7 (patch)
treeec511929e25e07171b6e85013b4a016ab759b43e /test/sigchld.go
parent491a3ca5b74fc4c06746020594d716b30195a923 (diff)
downloadgo-1ea5d154075033742ed2017950466af094d862f7.tar.gz
go-1ea5d154075033742ed2017950466af094d862f7.zip
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
Diffstat (limited to 'test/sigchld.go')
-rw-r--r--test/sigchld.go2
1 files changed, 1 insertions, 1 deletions
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");
}