From d1cc73775fe96a3c42108a01aad00056060df564 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 16 Feb 2020 20:38:56 +0100 Subject: Instance: flush input cache on SIGHUP --- src/Instance.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/Instance.cxx') diff --git a/src/Instance.cxx b/src/Instance.cxx index 2d8003f42..cf25ca201 100644 --- a/src/Instance.cxx +++ b/src/Instance.cxx @@ -198,3 +198,10 @@ Instance::OnIdle(unsigned flags) noexcept for (auto &partition : partitions) partition.EmitIdle(flags); } + +void +Instance::FlushCaches() noexcept +{ + if (input_cache) + input_cache->Flush(); +} -- cgit v1.2.3