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 @@ -294,8 +294,9 @@ func loadOptionalSyscalls() {
294
294
295
295
func monitorSuspendResume () {
296
296
const (
297
- _DEVICE_NOTIFY_CALLBACK = 2
298
- _ERROR_FILE_NOT_FOUND = 2
297
+ _DEVICE_NOTIFY_CALLBACK = 2
298
+ _ERROR_FILE_NOT_FOUND = 2
299
+ _ERROR_INVALID_PARAMETERS = 87
299
300
)
300
301
type _DEVICE_NOTIFY_SUBSCRIBE_PARAMETERS struct {
301
302
callback uintptr
@@ -333,6 +334,10 @@ func monitorSuspendResume() {
333
334
// also have their clock on "program time", and therefore
334
335
// don't want or need this anyway.
335
336
return
337
+ case _ERROR_INVALID_PARAMETERS :
338
+ // This is seen when running in Windows Docker.
339
+ // See issue 36557.
340
+ return
336
341
default :
337
342
println ("runtime: PowerRegisterSuspendResumeNotification failed with errno=" , ret )
338
343
throw ("runtime: PowerRegisterSuspendResumeNotification failure" )
You can’t perform that action at this time.
0 commit comments