]> Cypherpunks.ru repositories - gostls13.git/blob - test/sigchld.go
runtime: closures, defer bug fix for Native Client
[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.Syscall(syscall.SYS_KILL, uintptr(syscall.Getpid()), syscall.SIGCHLD, 0);
14         println("survived SIGCHLD");
15 }