diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-08-08 17:15:02 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-08-08 17:15:02 +0000 |
commit | 28a366ed7268db8428ee2d78fb44f29c78067dd9 (patch) | |
tree | e2443cc3c4c3b09b706e611a61f475c509778c57 /apps/app_qcall.c | |
parent | d85f0f5c24a90dab01664373615a8e243e6f5851 (diff) |
Merge BSD stack size work (bug #2067)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3596 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_qcall.c')
-rwxr-xr-x | apps/app_qcall.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/app_qcall.c b/apps/app_qcall.c index d171efe68..f5721e167 100755 --- a/apps/app_qcall.c +++ b/apps/app_qcall.c @@ -51,6 +51,7 @@ */ #include <asterisk/lock.h> +#include <asterisk/utils.h> #include <asterisk/file.h> #include <asterisk/logger.h> #include <asterisk/channel.h> @@ -156,7 +157,7 @@ pthread_attr_t attr; arg = (void *) strdup(fname); pthread_attr_init(&attr); pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); - if (pthread_create(&dialer_thread,&attr,qcall_do,arg) == -1) + if (ast_pthread_create(&dialer_thread,&attr,qcall_do,arg) == -1) { perror("qcall: Cannot create thread"); continue; @@ -371,7 +372,7 @@ int load_module(void) { snprintf(qdir, sizeof(qdir), "%s/%s", ast_config_AST_SPOOL_DIR, "qcall"); mkdir(qdir,0760); - pthread_create(&qcall_thread,NULL,qcall,NULL); + ast_pthread_create(&qcall_thread,NULL,qcall,NULL); return 0; } |