David du Colombier | 45893eb | 2014-01-29 09:28:23 +0100 | [diff] [blame] | 1 | // +build !plan9,!windows |
Rémy Oudompheng | 4f6a2b9 | 2013-01-28 21:29:45 +0100 | [diff] [blame] | 2 | // cmpout |
Russ Cox | cd22afa | 2012-09-23 13:16:14 -0400 | [diff] [blame] | 3 | |
Russ Cox | dfa5893 | 2008-12-03 14:21:28 -0800 | [diff] [blame] | 4 | // 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 Pike | 80a9783 | 2012-02-24 11:48:19 +1100 | [diff] [blame] | 8 | // Test that a program can survive SIGCHLD. |
| 9 | |
Russ Cox | dfa5893 | 2008-12-03 14:21:28 -0800 | [diff] [blame] | 10 | package main |
| 11 | |
| 12 | import "syscall" |
| 13 | |
Russ Cox | dfa5893 | 2008-12-03 14:21:28 -0800 | [diff] [blame] | 14 | func main() { |
Rob Pike | 4f61fc9 | 2010-09-04 10:36:13 +1000 | [diff] [blame] | 15 | syscall.Kill(syscall.Getpid(), syscall.SIGCHLD) |
| 16 | println("survived SIGCHLD") |
Russ Cox | dfa5893 | 2008-12-03 14:21:28 -0800 | [diff] [blame] | 17 | } |