Yet one more change to ctx.c on OSX
@@ -138,10 +138,8 @@ struct dill_ctx *dill_ctx_init(void) {
dill_assert(rc == 0);
if(dill_ismain()) {
dill_main = &dill_ctx_;
-#if !defined __APPLE__
rc = atexit(dill_ctx_atexit);
dill_assert(rc == 0);
-#endif
}
rc = pthread_setspecific(dill_key, &dill_ctx_);
dill_assert(rc == 0);
@@ -187,10 +185,8 @@ struct dill_ctx *dill_getctx_(void) {
dill_ctx_init_(ctx);
if(dill_ismain()) {
dill_main = ctx;
-#if !defined __APPLE__
rc = atexit(dill_ctx_atexit);
dill_assert(rc == 0);
-#endif
}
rc = pthread_setspecific(dill_key, ctx);
dill_assert(rc == 0);
