From 567a8d69a48869e80420b5aaa6e7815dec7c0439 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 23 Jan 2010 11:03:10 +0000 Subject: Add an exit() to silence a gcc warning and ensure forked code will never leave the cache-loop function. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30397 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/cache2.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'stream') 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){ -- cgit v1.2.3