summaryrefslogtreecommitdiffstats
path: root/stream/cache2.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/cache2.c')
-rw-r--r--stream/cache2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stream/cache2.c b/stream/cache2.c
index 6e8f398c37..4aed786cb6 100644
--- a/stream/cache2.c
+++ b/stream/cache2.c
@@ -367,6 +367,7 @@ void cache_uninit(stream_t *s) {
s->cache_data = NULL;
}
+#if FORKED_CACHE
static void exit_sighandler(int x){
// close stream
exit(0);
@@ -374,6 +375,7 @@ static void exit_sighandler(int x){
static void dummy_sighandler(int x) {
}
+#endif
/**
* Main loop of the cache process or thread.