remove pthread_exit() from rust_start()

It was causing OS X Lion to hang and (according to Apple) is undefined
in any case
This commit is contained in:
Niko Matsakis 2011-10-05 15:25:50 -07:00 committed by Brian Anderson
parent 100e0264b2
commit 61c9c46d94

View File

@ -109,12 +109,6 @@ rust_start(uintptr_t main_fn, int argc, char **argv,
free_env(env);
#if !defined(__WIN32__)
// Don't take down the process if the main thread exits without an
// error.
if (!ret)
pthread_exit(NULL);
#endif
return ret;
}