Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fixed #209 broken index lock when running daemon as windows service
- Loading branch information
SetConsoleCtrlHandler ( CtrlHandler, TRUE ); | ||
#endif | ||
|
||
if ( !g_bOptNoDetach && !bWatched ) | ||
if ( !g_bOptNoDetach && !bWatched && !g_bService ) | ||
{ | ||
// re-lock indexes | ||
for ( IndexHashIterator_c it ( g_pLocalIndexes ); it.Next(); ) |