mirror of
https://git.openafs.org/openafs.git
synced 2025-02-01 05:57:43 +00:00
Windows: afslogon NPLogonNotify exit on KTC_NOCM
If the service has started but is not responding to pioctls, permit the NPLogonNotify() routine to exit. Change-Id: I1ed4ac7a7fed5d86d607ecfd5e027f62ec26a82f Reviewed-on: http://gerrit.openafs.org/5315 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
parent
9052974812
commit
971a103cd0
@ -949,9 +949,9 @@ DWORD APIENTRY NPLogonNotify(
|
|||||||
DebugEvent0("Unable to obtain Root Cell");
|
DebugEvent0("Unable to obtain Root Cell");
|
||||||
code = KTC_NOCELL;
|
code = KTC_NOCELL;
|
||||||
reason = "unknown cell";
|
reason = "unknown cell";
|
||||||
code=0;
|
|
||||||
} else {
|
} else {
|
||||||
DebugEvent("Default cell is %s", cell);
|
DebugEvent("Default cell is %s", cell);
|
||||||
|
code = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We get the user's home directory path, if applicable, though we can't lookup the
|
/* We get the user's home directory path, if applicable, though we can't lookup the
|
||||||
@ -976,7 +976,8 @@ DWORD APIENTRY NPLogonNotify(
|
|||||||
Sleep(10);
|
Sleep(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
while (IsServiceRunning()) {
|
while (IsServiceRunning() && code != KTC_NOCM && code != KTC_NOCMRPC && code != KTC_NOCELL) {
|
||||||
|
|
||||||
DebugEvent("while(autostart) LogonOption[%x], Service AutoStart[%d]",
|
DebugEvent("while(autostart) LogonOption[%x], Service AutoStart[%d]",
|
||||||
opt.LogonOption,afsWillAutoStart);
|
opt.LogonOption,afsWillAutoStart);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user