]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
skypiax: create the threads with the detach bit UNset
authorGiovanni Maruzzelli <gmaruzz@gmail.com>
Wed, 17 Feb 2010 02:50:24 +0000 (02:50 +0000)
committerGiovanni Maruzzelli <gmaruzz@gmail.com>
Wed, 17 Feb 2010 02:50:24 +0000 (02:50 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16671 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_skypiax/mod_skypiax.c

index 59ce53c72a45f821a1360e490c0ce8932d96a253..4bb69c971b5173a87bf92769be806fe3f29c2944 100644 (file)
@@ -1386,7 +1386,7 @@ static switch_status_t load_config(int reload_type)
                                WARNINGA("STARTING interface_id=%d\n", SKYPIAX_P_LOG, interface_id);
 
                                switch_threadattr_create(&skypiax_api_thread_attr, skypiax_module_pool);
-                               switch_threadattr_detach_set(skypiax_api_thread_attr, 1);
+                               switch_threadattr_detach_set(skypiax_api_thread_attr, 0);
                                switch_threadattr_stacksize_set(skypiax_api_thread_attr, SWITCH_THREAD_STACKSIZE);
                                switch_thread_create(&globals.SKYPIAX_INTERFACES[interface_id].skypiax_api_thread,
                                                                         skypiax_api_thread_attr, skypiax_do_skypeapi_thread, &globals.SKYPIAX_INTERFACES[interface_id], skypiax_module_pool);
@@ -1781,7 +1781,7 @@ tech_pvt->begin_to_write=0;
 tech_pvt->begin_to_read=0;
 
        switch_threadattr_create(&thd_attr, skypiax_module_pool);
-       switch_threadattr_detach_set(thd_attr, 1);
+       switch_threadattr_detach_set(thd_attr, 0);
        switch_threadattr_stacksize_set(thd_attr, SWITCH_THREAD_STACKSIZE);
        if (switch_thread_create(&tech_pvt->tcp_srv_thread, thd_attr, skypiax_do_tcp_srv_thread, tech_pvt, skypiax_module_pool) == SWITCH_STATUS_SUCCESS) {
                DEBUGA_SKYPE("started tcp_srv_thread thread.\n", SKYPIAX_P_LOG);
@@ -1791,7 +1791,7 @@ tech_pvt->begin_to_read=0;
        }
 
        switch_threadattr_create(&thd_attr, skypiax_module_pool);
-       switch_threadattr_detach_set(thd_attr, 1);
+       switch_threadattr_detach_set(thd_attr, 0);
        switch_threadattr_stacksize_set(thd_attr, SWITCH_THREAD_STACKSIZE);
        if (switch_thread_create(&tech_pvt->tcp_cli_thread, thd_attr, skypiax_do_tcp_cli_thread, tech_pvt, skypiax_module_pool) == SWITCH_STATUS_SUCCESS) {
                DEBUGA_SKYPE("started tcp_cli_thread thread.\n", SKYPIAX_P_LOG);