Source file test/sigchld.go
1 // run 2 3 //go:build !plan9 && !windows && !wasip1 4 5 // Copyright 2009 The Go Authors. All rights reserved. 6 // Use of this source code is governed by a BSD-style 7 // license that can be found in the LICENSE file. 8 9 // Test that a program can survive SIGCHLD. 10 11 package main 12 13 import "syscall" 14 15 func main() { 16 syscall.Kill(syscall.Getpid(), syscall.SIGCHLD) 17 println("survived SIGCHLD") 18 } 19