File tree 1 file changed +3
-0
lines changed 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ const (
45
45
//go:cgo_import_dynamic runtime._SetThreadPriority SetThreadPriority%2 "kernel32.dll"
46
46
//go:cgo_import_dynamic runtime._SetUnhandledExceptionFilter SetUnhandledExceptionFilter%1 "kernel32.dll"
47
47
//go:cgo_import_dynamic runtime._SetWaitableTimer SetWaitableTimer%6 "kernel32.dll"
48
+ //go:cgo_import_dynamic runtime._Sleep Sleep%1 "kernel32.dll"
48
49
//go:cgo_import_dynamic runtime._SuspendThread SuspendThread%1 "kernel32.dll"
49
50
//go:cgo_import_dynamic runtime._SwitchToThread SwitchToThread%0 "kernel32.dll"
50
51
//go:cgo_import_dynamic runtime._TlsAlloc TlsAlloc%0 "kernel32.dll"
95
96
_SetThreadPriority ,
96
97
_SetUnhandledExceptionFilter ,
97
98
_SetWaitableTimer ,
99
+ _Sleep ,
98
100
_SuspendThread ,
99
101
_SwitchToThread ,
100
102
_TlsAlloc ,
@@ -1029,6 +1031,7 @@ func ctrlhandler1(_type uint32) uint32 {
1029
1031
}
1030
1032
1031
1033
if sigsend (s ) {
1034
+ stdcall1 (_Sleep , uintptr (_INFINITE ))
1032
1035
return 1
1033
1036
}
1034
1037
exit (2 ) // SIGINT, SIGTERM, etc
You can’t perform that action at this time.
0 commit comments