summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinu Rajashekhar <vinutheraj@gmail.com>2010-07-28 18:26:29 -0700
committerVinu Rajashekhar <vinutheraj@gmail.com>2010-07-28 18:26:29 -0700
commit3cc6b75e4539e29f6608db6dff74fce511ed3fde (patch)
treef92a0f0e40bbc69cf085944407903c1b4c79ec31
parent72e45ac44e611fa0a1466c0d51a8c7db6961ab96 (diff)
downloadgo-3cc6b75e4539e29f6608db6dff74fce511ed3fde.tar.gz
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 http://codereview.appspot.com/1863046 Committer: Russ Cox <rsc@golang.org>
-rw-r--r--test/sigchld.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sigchld.go b/test/sigchld.go
index 3887e2d02..214e72b62 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");
}