Commit 7edaf1a4 authored by Pekka Pessi's avatar Pekka Pessi

su_clone_start(): fixed spurious release of a pthreaded port

darcs-hash:20071011162528-65a35-8c3b27e9d3e40fa601243e6a44c545696d69b82f.gz
parent b760fd30
......@@ -669,7 +669,7 @@ int su_poll_clone_start(su_root_t *parent,
su_root_init_f init,
su_root_deinit_f deinit)
{
return su_pthreaded_port_start(su_default_port_create,
return su_pthreaded_port_start(su_poll_port_create,
parent, return_clone, magic, init, deinit);
}
......
......@@ -296,8 +296,6 @@ static void *su_pthread_port_clone_main(void *varg)
task->sut_port = arg->create();
if (task->sut_port) {
task->sut_port->sup_thread = 1;
task->sut_root = su_salloc(su_port_home(task->sut_port),
sizeof *task->sut_root);
if (task->sut_root) {
......@@ -346,8 +344,6 @@ static void *su_pthread_port_clone_main(void *varg)
}
}
task->sut_port->sup_thread = 0;
task->sut_port->sup_base->sup_vtable->
su_port_decref(task->sut_port, zap,
"su_pthread_port_clone_main");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment