aboutsummaryrefslogtreecommitdiff
path: root/nptl/libc-cleanup.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/libc-cleanup.c')
-rw-r--r--nptl/libc-cleanup.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/nptl/libc-cleanup.c b/nptl/libc-cleanup.c
index 4c7bcda..2520060 100644
--- a/nptl/libc-cleanup.c
+++ b/nptl/libc-cleanup.c
@@ -69,10 +69,7 @@ __libc_cleanup_pop_restore (struct _pthread_cleanup_buffer *buffer)
&cancelhandling, newval));
if (cancel_enabled_and_canceled (cancelhandling))
- {
- self->result = PTHREAD_CANCELED;
- __do_cancel ();
- }
+ __do_cancel (PTHREAD_CANCELED);
}
}
libc_hidden_def (__libc_cleanup_pop_restore)