Skip to content

Commit

Permalink
bin: use new flb_loop() for clear exit
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Sep 30, 2020
1 parent 7726710 commit f725749
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/fluent-bit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1031,9 +1031,8 @@ int flb_main(int argc, char **argv)
return ret;
}

while (1) {
sleep(1);
}
flb_loop(ctx);
flb_destroy(ctx);

return ret;
}
Expand Down

0 comments on commit f725749

Please sign in to comment.