aboutsummaryrefslogtreecommitdiffstats
path: root/devicestate.c
diff options
context:
space:
mode:
authorroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-10 21:03:04 +0000
committerroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-10 21:03:04 +0000
commitb093da8912c4243011e2614dc560cf7ac6436632 (patch)
treed84f883af18e3f8bf5b5895a0476ed156fcda32c /devicestate.c
parent659d81c583eb7362f7acbf08c67ea8b5bac2e7a4 (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@9422 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'devicestate.c')
-rw-r--r--devicestate.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/devicestate.c b/devicestate.c
index 73b779568..b19709152 100644
--- a/devicestate.c
+++ b/devicestate.c
@@ -1,7 +1,7 @@
/*
* Asterisk -- An open source telephony toolkit.
*
- * Copyright (C) 1999 - 2005, Digium, Inc.
+ * Copyright (C) 1999 - 2006, Digium, Inc.
*
* Mark Spencer <markster@digium.com>
*
@@ -271,12 +271,8 @@ static void *do_devstate_changes(void *data)
/*--- ast_device_state_engine_init: Initialize the device state engine in separate thread */
int ast_device_state_engine_init(void)
{
- pthread_attr_t attr;
-
ast_cond_init(&change_pending, NULL);
- pthread_attr_init(&attr);
- pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
- if (ast_pthread_create(&change_thread, &attr, do_devstate_changes, NULL) < 0) {
+ if (ast_pthread_create(&change_thread, NULL, do_devstate_changes, NULL) < 0) {
ast_log(LOG_ERROR, "Unable to start device state change thread.\n");
return -1;
}