mirror of
https://github.com/fluencelabs/musl
synced 2025-07-30 13:51:58 +00:00
fix pthread_cleanup_pop(1) crash in non-thread-capable, static-linked programs
This commit is contained in:
@@ -5,6 +5,8 @@ void __do_cleanup_pop();
|
||||
|
||||
void _pthread_cleanup_push(struct __ptcb *cb, void (*f)(void *), void *x)
|
||||
{
|
||||
cb->__f = f;
|
||||
cb->__x = x;
|
||||
__do_cleanup_push(cb, f, x);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user