2013-01-28 13:29:45 -07:00
|
|
|
// +build !windows
|
|
|
|
// cmpout
|
2012-09-23 11:16:14 -06:00
|
|
|
|
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
|
|
|
}
|