cmd/panicweb/main_windows.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 windows |
| 6 | |
| 7 | package main |
| 8 | |
| 9 | import "golang.org/x/sys/windows" |
| 10 | |
| 11 | func sysHang() { |
| 12 | // 49.7 days is enough for everyone. |
| 13 | windows.SleepEx(0xFFFFFFFF, false) |
| 14 | } |