static int cork_error_thread__run(void *vself) { /* The particular error doesn't matter; just want to make sure it gets * propagated from the cork_thread_join call. */ cork_system_error_set_explicit(ENOMEM); return -1; }
void cork_system_error_set(void) { cork_system_error_set_explicit(errno); }