From 6a0c8047f4167f6627504a69acd2b52be5fc534d Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Thu, 2 Jan 2025 06:22:26 +0000 Subject: [PATCH] fix compiling error for goctl on windows --- core/proc/shutdown+polyfill.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/proc/shutdown+polyfill.go b/core/proc/shutdown+polyfill.go index 58752a835ddc..c8ef0000f5ed 100644 --- a/core/proc/shutdown+polyfill.go +++ b/core/proc/shutdown+polyfill.go @@ -4,6 +4,9 @@ package proc import "time" + +type ShutdownConf {} + // AddShutdownListener returns fn itself on windows, lets callers call fn on their own. func AddShutdownListener(fn func()) func() { return fn @@ -18,6 +21,10 @@ func AddWrapUpListener(fn func()) func() { func SetTimeToForceQuit(duration time.Duration) { } +// Setup does nothing on windows. +func Setup() { +} + // Shutdown does nothing on windows. func Shutdown() { }