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