File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -263,8 +263,9 @@ func loadOptionalSyscalls() {
263
263
264
264
func monitorSuspendResume () {
265
265
const (
266
- _DEVICE_NOTIFY_CALLBACK = 2
267
- _ERROR_FILE_NOT_FOUND = 2
266
+ _DEVICE_NOTIFY_CALLBACK = 2
267
+ _ERROR_FILE_NOT_FOUND = 2
268
+ _ERROR_INVALID_PARAMETERS = 87
268
269
)
269
270
type _DEVICE_NOTIFY_SUBSCRIBE_PARAMETERS struct {
270
271
callback uintptr
@@ -302,6 +303,10 @@ func monitorSuspendResume() {
302
303
// also have their clock on "program time", and therefore
303
304
// don't want or need this anyway.
304
305
return
306
+ case _ERROR_INVALID_PARAMETERS :
307
+ // This is seen when running in Windows Docker.
308
+ // See issue 36557.
309
+ return
305
310
default :
306
311
println ("runtime: PowerRegisterSuspendResumeNotification failed with errno=" , ret )
307
312
throw ("runtime: PowerRegisterSuspendResumeNotification failure" )
You can’t perform that action at this time.
0 commit comments