2014-01-29 08:28:23 +00:00
|
|
|
// +build !plan9,!windows
|
2013-01-28 20:29:45 +00:00
|
|
|
// cmpout
|
2012-09-23 17:16:14 +00:00
|
|
|
|
2008-12-03 22:21:28 +00: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-24 00:48:19 +00:00
|
|
|
// Test that a program can survive SIGCHLD.
|
|
|
|
|
2008-12-03 22:21:28 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import "syscall"
|
|
|
|
|
|
|
|
func main() {
|
2010-09-04 00:36:13 +00:00
|
|
|
syscall.Kill(syscall.Getpid(), syscall.SIGCHLD)
|
|
|
|
println("survived SIGCHLD")
|
2008-12-03 22:21:28 +00:00
|
|
|
}
|