* elf/dl-error.c (_dl_catch_error): Use __sigsetgjmp instead of
authorUlrich Drepper <drepper@redhat.com>
Sat, 17 Dec 2005 23:26:28 +0000 (23:26 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 17 Dec 2005 23:26:28 +0000 (23:26 +0000)
setjmp.

ChangeLog
elf/dl-error.c

index 2d61341..b2af78c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2005-12-17  Ulrich Drepper  <drepper@redhat.com>
 
+       * elf/dl-error.c (_dl_catch_error): Use __sigsetgjmp instead of
+       setjmp.
        * elf/dl-error.c (_dl_signal_error): Use __longjmp instead of longjmp.
        * elf/dl-minimal.c (longjmp): Remove definition.
 
index be9209d..b5374e9 100644 (file)
@@ -170,7 +170,8 @@ _dl_catch_error (const char **objname, const char **errstring,
 
   struct catch **const catchp = &CATCH_HOOK;
   old = *catchp;
-  errcode = setjmp (c.env);
+  /* Do not save the signal mask.  */
+  errcode = __sigsetjmp (c.env, 0);
   if (__builtin_expect (errcode, 0) == 0)
     {
       *catchp = &c;