Skip to content

Commit

Permalink
fixup! Don't use sig_atomic_t on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgautierfr committed Aug 30, 2024
1 parent cbb04b3 commit c27ab14
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/server/kiwix-serve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,11 +425,9 @@ int main(int argc, char** argv)

if ( monitorLibrary ) {
curLibraryFileTimestamp = newestFileTimestamp(libraryPaths);
#ifndef _WIN32
libraryMustBeReloaded += curLibraryFileTimestamp > libraryFileTimestamp;
#else
libraryMustBeReloaded |= curLibraryFileTimestamp > libraryFileTimestamp;
#endif
if ( !libraryMustBeReloaded ) {
libraryMustBeReloaded = curLibraryFileTimestamp > libraryFileTimestamp;
}
}

if ( libraryMustBeReloaded && !libraryPaths.empty() ) {
Expand Down

0 comments on commit c27ab14

Please sign in to comment.