diff options
Diffstat (limited to 'asterisk.c')
-rwxr-xr-x | asterisk.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |