fix issue with threaded ivrd, forking is back by default but threaded can be chosen with -t; in both modes the fd number is not passed as the first arg to the program but in threaded mode the stdin will no longer be mapped to the socket you will have to get the first command line arg instead of fileno stdin

This commit is contained in:
Anthony Minessale
2012-05-03 13:13:48 -05:00
parent 086cbf1bfc
commit 163fffb3e8
4 changed files with 141 additions and 21 deletions

View File

@@ -48,7 +48,7 @@ static void mycallback(esl_socket_t server_sock, esl_socket_t client_sock, struc
int main(void)
{
esl_global_set_default_logger(7);
esl_listen("localhost", 8084, mycallback, 100000);
esl_listen_threaded("localhost", 8084, mycallback, 100000);
return 0;
}