blob: 38437e5522b26bd427bfc1ceef5cd9035117a352 [file] [log] [blame]
David du Colombier45893eb2014-01-29 09:28:23 +01001// +build !plan9,!windows
Rémy Oudompheng4f6a2b92013-01-28 21:29:45 +01002// cmpout
Russ Coxcd22afa2012-09-23 13:16:14 -04003
Russ Coxdfa58932008-12-03 14:21:28 -08004// Copyright 2009 The Go Authors. All rights reserved.
5// Use of this source code is governed by a BSD-style
6// license that can be found in the LICENSE file.
7
Rob Pike80a97832012-02-24 11:48:19 +11008// Test that a program can survive SIGCHLD.
9
Russ Coxdfa58932008-12-03 14:21:28 -080010package main
11
12import "syscall"
13
Russ Coxdfa58932008-12-03 14:21:28 -080014func main() {
Rob Pike4f61fc92010-09-04 10:36:13 +100015 syscall.Kill(syscall.Getpid(), syscall.SIGCHLD)
16 println("survived SIGCHLD")
Russ Coxdfa58932008-12-03 14:21:28 -080017}