From 7acee329e1e2f75c286d5f5140d2d05f1dbf4bd5 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Sun, 8 Aug 2004 17:15:02 +0000 Subject: Merge BSD stack size work (bug #2067) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3596 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- asterisk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'asterisk.c') diff --git a/asterisk.c b/asterisk.c index 2f8df1279..71d1ee448 100755 --- a/asterisk.c +++ b/asterisk.c @@ -342,7 +342,7 @@ static void *listener(void *unused) flags = fcntl(consoles[x].p[1], F_GETFL); fcntl(consoles[x].p[1], F_SETFL, flags | O_NONBLOCK); consoles[x].fd = s; - if (pthread_create(&consoles[x].t, &attr, netconsole, &consoles[x])) { + if (ast_pthread_create(&consoles[x].t, &attr, netconsole, &consoles[x])) { ast_log(LOG_ERROR, "Unable to spawn thread to handle connection: %s\n", strerror(errno)); consoles[x].fd = -1; fdprint(s, "Server failed to spawn thread\n"); @@ -395,7 +395,7 @@ static int ast_makesocket(void) return -1; } ast_register_verbose(network_verboser); - pthread_create(<hread, NULL, listener, NULL); + ast_pthread_create(<hread, NULL, listener, NULL); return 0; } -- cgit v1.2.3