diff --git a/stream/cache2.c b/stream/cache2.c index 503f3f5616..3060cea60e 100644 --- a/stream/cache2.c +++ b/stream/cache2.c @@ -406,6 +406,8 @@ static void ThreadProc( void *s ){ #ifdef PTHREAD_CACHE return NULL; #endif + // make sure forked code never leaves this function + exit(0); } int cache_stream_fill_buffer(stream_t *s){