X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fcancellation.c;h=ab7eebcc02a43e5fc75b315acb98ac7f5b137f8f;hb=65db6bf5ea1f27ec2cddd6423868baeff05cc719;hp=23d23d14ef2c63683f44662ed2cb48c5771ac906;hpb=2230218c283af7fbff08167685f17dad8d748f14;p=musl diff --git a/src/thread/cancellation.c b/src/thread/cancellation.c index 23d23d14..ab7eebcc 100644 --- a/src/thread/cancellation.c +++ b/src/thread/cancellation.c @@ -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); }