2018-05-31 09:51:00 -06:00
|
|
|
// run
|
2012-09-23 11:16:14 -06:00
|
|
|
|
2023-10-17 13:07:58 -06:00
|
|
|
//go:build !plan9 && !windows && !wasip1
|
|
|
|
|
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
|
|
|
}
|