mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	Merge BSD stack size work (bug #2067)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -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; | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user