Skip to content

Commit

Permalink
Update file_mtime after deciding to flush the cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Apr 16, 1999
1 parent 5d15fc5 commit 3d08d80
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nscd/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,11 @@ prune_cache (struct database *table, time_t now)
else
{
if (st.st_mtime != table->file_mtime)
/* The file changed. Invalidate all entries. */
now = LONG_MAX;
{
/* The file changed. Invalidate all entries. */
now = LONG_MAX;
st.st_mtime = table->file_mtime;
}
}
}

Expand Down

0 comments on commit 3d08d80

Please sign in to comment.