From c9fa134e65c557abf7a25122b2581b962ac1481f Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 18 Jun 2004 05:52:25 +0000 Subject: [PATCH] nt-power-mgmt-fix-20040617 The fixed timeout of 19 seconds was too short. Should be set to the value of HardDeadtimeout as set by cm_conn.c. The failure to specify an adequate timeout value prevented successful Hibernation and Standby mode access when network connectivity was not available. --- src/WINNT/afsd/afsd_flushvol.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/WINNT/afsd/afsd_flushvol.c b/src/WINNT/afsd/afsd_flushvol.c index 83267fa5c..32ab70025 100644 --- a/src/WINNT/afsd/afsd_flushvol.c +++ b/src/WINNT/afsd/afsd_flushvol.c @@ -16,6 +16,7 @@ #include "afsd.h" #include "afsd_init.h" #include "smb.h" +#include "cm_conn.h" #include #include #include @@ -466,11 +467,11 @@ PowerNotificationThreadNotify() DWORD dwRet = 0; BOOL bRet = FALSE; - // Notify thread of power event, and wait 19 seconds + // Notify thread of power event, and wait for the HardDead timeout period dwRet = SignalObjectAndWait( gThreadInfo.hEventPowerEvent, // object to signal gThreadInfo.hEventResumeMain, // object to watch - 19*1000, // timeout (ms) + HardDeadtimeout*1000, // timeout (ms) FALSE // alertable ); -- 2.39.5