mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Rename a 'do_net_run' variable to 'do_run_loop'
For clarity, since the net_run() function was renamed to run_loop().
This commit is contained in:
parent
44903da8fd
commit
faf6d4ec1a
3 changed files with 9 additions and 9 deletions
|
@ -16,11 +16,11 @@ int main(int argc, char** argv)
|
||||||
return setup_result.code;
|
return setup_result.code;
|
||||||
|
|
||||||
auto& options = setup_result.options;
|
auto& options = setup_result.options;
|
||||||
auto do_net_run = zeek::iosource_mgr->Size() > 0 ||
|
auto do_run_loop = zeek::iosource_mgr->Size() > 0 ||
|
||||||
zeek::run_state::detail::have_pending_timers ||
|
zeek::run_state::detail::have_pending_timers ||
|
||||||
zeek::BifConst::exit_only_after_terminate;
|
zeek::BifConst::exit_only_after_terminate;
|
||||||
|
|
||||||
if ( do_net_run )
|
if ( do_run_loop )
|
||||||
{
|
{
|
||||||
if ( zeek::detail::profiling_logger )
|
if ( zeek::detail::profiling_logger )
|
||||||
zeek::detail::profiling_logger->Log();
|
zeek::detail::profiling_logger->Log();
|
||||||
|
@ -78,5 +78,5 @@ int main(int argc, char** argv)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return zeek::detail::cleanup(do_net_run);
|
return zeek::detail::cleanup(do_run_loop);
|
||||||
}
|
}
|
||||||
|
|
|
@ -908,9 +908,9 @@ SetupResult setup(int argc, char** argv, Options* zopts)
|
||||||
return {0, std::move(options)};
|
return {0, std::move(options)};
|
||||||
}
|
}
|
||||||
|
|
||||||
int cleanup(bool did_net_run)
|
int cleanup(bool did_run_loop )
|
||||||
{
|
{
|
||||||
if ( did_net_run )
|
if ( did_run_loop )
|
||||||
done_with_network();
|
done_with_network();
|
||||||
|
|
||||||
run_state::detail::delete_run();
|
run_state::detail::delete_run();
|
||||||
|
|
|
@ -24,8 +24,8 @@ SetupResult setup(int argc, char** argv, Options* options = nullptr);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cleans up Zeek's global state.
|
* Cleans up Zeek's global state.
|
||||||
* @param did_net_run whether the net_run() was called.
|
* @param did_run_loop whether the run_loop() function was called.
|
||||||
*/
|
*/
|
||||||
int cleanup(bool did_net_run);
|
int cleanup(bool did_run_loop);
|
||||||
|
|
||||||
} // namespace zeek::detail
|
} // namespace zeek::detail
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue