]> Cypherpunks.ru repositories - gostls13.git/blob - test/sigchld.go
test/sigchld.go: use syscall.Kill instead of a combination
[gostls13.git] / test / sigchld.go
1 // if [ $GOOS == nacl ]; then echo survived SIGCHLD; exit 0; fi  # NaCl has no signals.
2 // $G $D/$F.go && $L $F.$A && ./$A.out
3
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
8 package main
9
10 import "syscall"
11
12 func main() {
13         syscall.Kill(syscall.Getpid(), syscall.SIGCHLD);
14         println("survived SIGCHLD");
15 }