Skip to content

Commit 61c9c46

Browse files
nikomatsakisbrson
authored andcommitted
remove pthread_exit() from rust_start()
It was causing OS X Lion to hang and (according to Apple) is undefined in any case
1 parent 100e026 commit 61c9c46

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/rt/rust.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,6 @@ rust_start(uintptr_t main_fn, int argc, char **argv,
109109

110110
free_env(env);
111111

112-
#if !defined(__WIN32__)
113-
// Don't take down the process if the main thread exits without an
114-
// error.
115-
if (!ret)
116-
pthread_exit(NULL);
117-
#endif
118112
return ret;
119113
}
120114

0 commit comments

Comments
 (0)