diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2008-07-24 23:42:27 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2008-07-24 23:42:27 +0000 |
commit | 1299c3cf0f2ad42aede8841748a81b830dffd3e5 (patch) | |
tree | 82250bb84fe1fc981c5d463c9af91d0cbe80222f /libexec | |
parent | f859e2afe6cc807ad285541a66d768c66364b18d (diff) |
release the bind lock before resetting the signal mask
ok kurt@
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/ld.so/sh/rtld_machine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ld.so/sh/rtld_machine.c b/libexec/ld.so/sh/rtld_machine.c index 432efa9a691..b09c4d3fa4d 100644 --- a/libexec/ld.so/sh/rtld_machine.c +++ b/libexec/ld.so/sh/rtld_machine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtld_machine.c,v 1.12 2008/06/27 17:27:58 miod Exp $ */ +/* $OpenBSD: rtld_machine.c,v 1.13 2008/07/24 23:42:26 guenther Exp $ */ /* * Copyright (c) 2004 Dale Rahn @@ -873,8 +873,8 @@ _dl_bind(elf_object_t *object, int relidx) if (object->got_size != 0) { _dl_mprotect((void*)object->got_start, object->got_size, PROT_READ); - _dl_sigprocmask(SIG_SETMASK, &omask, NULL); _dl_thread_bind_lock(1); + _dl_sigprocmask(SIG_SETMASK, &omask, NULL); } return newval; } |