Debian Codegraph @

cmd/panicweb/main_unix.go

raw
1 // Copyright 2020 Marc-Antoine Ruel. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file.
4
5 //go:build aix || dragonfly || freebsd || linux || netbsd || openbsd || solaris
6
7 package main
8
9 import "golang.org/x/sys/unix"
10
11 func sysHang() {
12 _ = unix.Nanosleep(&unix.Timespec{Sec: 366 * 24 * 60 * 60}, &unix.Timespec{})
13 }