summaryrefslogtreecommitdiff
path: root/libpthread/nptl/sysdeps/unix/sysv/linux/jmp-unwind.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-09 10:08:08 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-13 21:18:32 +0200
commita3e5bfd20712f71790ea9bae9e9be250f07e8c21 (patch)
tree21550ca2df8a7573185cf4274c1b925e1e8de493 /libpthread/nptl/sysdeps/unix/sysv/linux/jmp-unwind.c
parent48442540e4c481474c4493192cbd9cb58c5016ad (diff)
cleanup and fix static linking issues
There was a deadlock hanging in a sycall to futex, which should be solved now. Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
Diffstat (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/jmp-unwind.c')
-rw-r--r--libpthread/nptl/sysdeps/unix/sysv/linux/jmp-unwind.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/jmp-unwind.c b/libpthread/nptl/sysdeps/unix/sysv/linux/jmp-unwind.c
index 6013ab040..965327c50 100644
--- a/libpthread/nptl/sysdeps/unix/sysv/linux/jmp-unwind.c
+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/jmp-unwind.c
@@ -27,6 +27,7 @@ extern void __pthread_cleanup_upto (__jmp_buf env, char *targetframe);
void
_longjmp_unwind (jmp_buf env, int val)
{
+ if (__pthread_cleanup_upto != NULL)
__pthread_cleanup_upto (env->__jmpbuf, CURRENT_STACK_FRAME);
}
libc_hidden_def(_longjmp_unwind)