diff options
Diffstat (limited to 'src/sync-mode.c')
-rw-r--r-- | src/sync-mode.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sync-mode.c b/src/sync-mode.c index 56c30af..297a500 100644 --- a/src/sync-mode.c +++ b/src/sync-mode.c @@ -343,6 +343,14 @@ static int local_handler_sync(int fd, int type, void *data) exit(EXIT_SUCCESS); } break; + case RESET_TIMERS: + ret = fork(); + if (ret == 0) { + dlog(LOG_NOTICE, "resetting timers"); + cache_reset_timers(STATE_SYNC(internal)); + exit(EXIT_SUCCESS); + } + break; case FLUSH_CACHE: dlog(LOG_NOTICE, "flushing caches"); cache_flush(STATE_SYNC(internal)); |