Skip to content

Commit

Permalink
* elf/dl-error.c (_dl_catch_error): Use __sigsetgjmp instead of
Browse files Browse the repository at this point in the history
	setjmp.
  • Loading branch information
Ulrich Drepper committed Dec 17, 2005
1 parent b15cc6a commit 8292f6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions 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.

Expand Down
3 changes: 2 additions & 1 deletion elf/dl-error.c
Expand Up @@ -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;
Expand Down

0 comments on commit 8292f6f

Please sign in to comment.