Module: sip-router Branch: master Commit: 8d666c30b712b75b00b281e225beb4783f964683 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8d666c30...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Fri Jul 15 16:55:45 2011 +0200
core: reinit PV buffer after config parsing
- the size of the buffer may have been updated by parameters
---
main.c | 4 ++++ pvapi.h | 2 +- 2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/main.c b/main.c index a35faf3..8ba3cf8 100644 --- a/main.c +++ b/main.c @@ -2184,6 +2184,10 @@ try_again: } }
+ /* reinit if pv buffer size has been set in config */ + if (pv_reinit_buffer()<0) + goto error; + if (dont_fork_cnt) dont_fork = dont_fork_cnt; /* override by command line */
diff --git a/pvapi.h b/pvapi.h index f3fd261..855e92b 100644 --- a/pvapi.h +++ b/pvapi.h @@ -26,7 +26,7 @@ int pv_init_api(void); void pv_destroy_api(void);
int pv_init_buffer(void); -int pv_resize_buffer(void); +int pv_reinit_buffer(void); void pv_destroy_buffer(void); char* pv_get_buffer(void); int pv_get_buffer_size(void);