Skip to content

Commit

Permalink
Merge pull request #415 from pwieczorkiewicz/nanny-timeout
Browse files Browse the repository at this point in the history
nanny: initialize timeout variable to avoid poll() return
  • Loading branch information
mtomaschewski committed Sep 10, 2014
2 parents 3f8478d + 9a91e3a commit 638f835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nanny/main.c
Expand Up @@ -286,7 +286,7 @@ babysit(void)
ni_file_remove_recursively(ni_nanny_statedir());

while (!ni_caught_terminal_signal()) {
long timeout;
long timeout = NI_IFWORKER_INFINITE_TIMEOUT;

if (ni_config_use_nanny()) {
do {
Expand Down

0 comments on commit 638f835

Please sign in to comment.