mirror of
https://github.com/golang/go
synced 2024-11-21 15:14:43 -07:00
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
This commit is contained in:
parent
491a3ca5b7
commit
1ea5d15407
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user