Commit 4abecc26745c8fb473b6df67ac55f85e95a85275

Con Kolivas 2012-07-16T22:03:43

Detach pthread from within the api thread in case it is terminated due to not being instantiated before pthread_cancel is called from main, leading to a segfault.