Skip to content

Commit

Permalink
fixup! Library reloading on SIGHUP
Browse files Browse the repository at this point in the history
  • Loading branch information
veloman-yunkan committed Dec 2, 2021
1 parent e44b8bc commit fd7f806
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server/kiwix-serve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ void setup_sighandlers()
bool reloadLibrary(kiwix::Manager& mgr, const std::vector<std::string>& paths)
{
try {
std::cerr << "Loading the library from the following files:\n";
std::cout << "Loading the library from the following files:\n";
for ( const auto& p : paths ) {
std::cerr << "\t" << p << std::endl;
std::cout << "\t" << p << std::endl;
}
mgr.reload(paths);
std::cerr << "The library was successfully loaded." << std::endl;
std::cout << "The library was successfully loaded." << std::endl;
return true;
} catch ( const std::runtime_error& err ) {
std::cerr << "ERROR: " << err.what() << std::endl;
Expand Down

0 comments on commit fd7f806

Please sign in to comment.