2012-01-18 17:12:24 -07:00
|
|
|
// [ "$GOOS" == windows ] ||
|
|
|
|
// ($G $D/$F.go && $L $F.$A && ./$A.out 2>&1 | cmp - $D/$F.out)
|
2008-12-03 15:21:28 -07:00
|
|
|
|
|
|
|
// Copyright 2009 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2012-02-23 17:48:19 -07:00
|
|
|
// Test that a program can survive SIGCHLD.
|
|
|
|
|
2008-12-03 15:21:28 -07:00
|
|
|
package main
|
|
|
|
|
|
|
|
import "syscall"
|
|
|
|
|
|
|
|
func main() {
|
2010-09-03 18:36:13 -06:00
|
|
|
syscall.Kill(syscall.Getpid(), syscall.SIGCHLD)
|
|
|
|
println("survived SIGCHLD")
|
2008-12-03 15:21:28 -07:00
|
|
|
}
|