diff options
author | Vinu Rajashekhar <vinutheraj@gmail.com> | 2010-07-28 18:26:29 -0700 |
---|---|---|
committer | Vinu Rajashekhar <vinutheraj@gmail.com> | 2010-07-28 18:26:29 -0700 |
commit | 3cc6b75e4539e29f6608db6dff74fce511ed3fde (patch) | |
tree | f92a0f0e40bbc69cf085944407903c1b4c79ec31 | |
parent | 72e45ac44e611fa0a1466c0d51a8c7db6961ab96 (diff) | |
download | go-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.go | 2 |
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"); } |