changeset 30355:ca3e3df28fe2

Add an exit() to silence a gcc warning and ensure forked code will never leave the cache-loop function.
author reimar
date Sat, 23 Jan 2010 11:03:10 +0000
parents 1b2de14c5233
children 5cd7eb2e34c0
files stream/cache2.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/stream/cache2.c	Sat Jan 23 11:00:13 2010 +0000
+++ b/stream/cache2.c	Sat Jan 23 11:03:10 2010 +0000
@@ -406,6 +406,8 @@
 #ifdef PTHREAD_CACHE
   return NULL;
 #endif
+  // make sure forked code never leaves this function
+  exit(0);
 }
 
 int cache_stream_fill_buffer(stream_t *s){