Browse code

core: reinit PV buffer after config parsing

- the size of the buffer may have been updated by parameters

Daniel-Constantin Mierla authored on 15/07/2011 14:55:45
Showing 2 changed files
... ...
@@ -2184,6 +2184,10 @@ try_again:
2184 2184
 		}
2185 2185
 	}
2186 2186
 
2187
+	/* reinit if pv buffer size has been set in config */
2188
+	if (pv_reinit_buffer()<0)
2189
+		goto error;
2190
+
2187 2191
 	if (dont_fork_cnt)
2188 2192
 		dont_fork = dont_fork_cnt;	/* override by command line */
2189 2193
 
... ...
@@ -26,7 +26,7 @@ int  pv_init_api(void);
26 26
 void pv_destroy_api(void);
27 27
 
28 28
 int   pv_init_buffer(void);
29
-int   pv_resize_buffer(void);
29
+int   pv_reinit_buffer(void);
30 30
 void  pv_destroy_buffer(void);
31 31
 char* pv_get_buffer(void);
32 32
 int   pv_get_buffer_size(void);