mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-01 22:47:46 +00:00
chore(userspace/falco): rename falco_init into falco_run
Co-authored-by: Federico Di Pierro <nierro92@gmail.com> Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
parent
149544d7ab
commit
c45bf3eb17
@ -40,7 +40,7 @@ static void display_fatal_err(const std::string &&msg)
|
|||||||
//
|
//
|
||||||
// ARGUMENT PARSING AND PROGRAM SETUP
|
// ARGUMENT PARSING AND PROGRAM SETUP
|
||||||
//
|
//
|
||||||
int falco_init(int argc, char **argv, bool &restart)
|
int falco_run(int argc, char **argv, bool &restart)
|
||||||
{
|
{
|
||||||
restart = false;
|
restart = false;
|
||||||
std::string errstr;
|
std::string errstr;
|
||||||
@ -69,11 +69,11 @@ int main(int argc, char **argv)
|
|||||||
int rc;
|
int rc;
|
||||||
bool restart;
|
bool restart;
|
||||||
|
|
||||||
// Generally falco exits when falco_init returns with the rc
|
// Generally falco exits when falco_run returns with the rc
|
||||||
// returned by falco_init. However, when restart (set by
|
// returned by falco_run. However, when restart (set by
|
||||||
// signal handlers, returned in application::run()) is true,
|
// signal handlers, returned in application::run()) is true,
|
||||||
// falco_init() is called again.
|
// falco_run() is called again.
|
||||||
while((rc = falco_init(argc, argv, restart)) == EXIT_SUCCESS && restart)
|
while((rc = falco_run(argc, argv, restart)) == EXIT_SUCCESS && restart)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user