1// [ "$GOOS" == windows ] ||
2// ($G $D/$F.go && $L $F.$A && ./$A.out 2>&1 | cmp - $D/$F.out)
3
4// NOTE: This test is not run by 'run.go' and so not run by all.bash.
5// To run this test you must use the ./run shell script.
6
7// Copyright 2009 The Go Authors. All rights reserved.
8// Use of this source code is governed by a BSD-style
9// license that can be found in the LICENSE file.
10
11// Test that a program can survive SIGCHLD.
12
13package main
14
15import "syscall"
16
17func main() {
18	syscall.Kill(syscall.Getpid(), syscall.SIGCHLD)
19	println("survived SIGCHLD")
20}
21