Skip to content

Commit

Permalink
This was submitted in issue ossec#976 by th0u.
Browse files Browse the repository at this point in the history
loop_timeout and open_file_attempts are read by logcollector/main.c
 but not in win32/win_agent.c. This could be an issue for win32 agents.
  • Loading branch information
ddpbsd committed Oct 24, 2016
1 parent fa79706 commit 6987256
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/win32/win_agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ int local_start()
}
accept_manager_commands = getDefine_Int("logcollector",
"remote_commands", 0, 1);
loop_timeout = getDefine_Int("logcollector", "loop_timeout", 1, 120);
open_file_attempts = getDefine_Int("logcollector", "open_attempts", 2, 998);

/* Configuration file not present */
if (File_DateofChange(cfg) < 0) {
Expand Down

0 comments on commit 6987256

Please sign in to comment.