]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Sun Jul 7 18:42:06 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
authorRoland McGrath <roland@gnu.org>
Sun, 7 Jul 1996 22:45:05 +0000 (22:45 +0000)
committerRoland McGrath <roland@gnu.org>
Sun, 7 Jul 1996 22:45:05 +0000 (22:45 +0000)
* sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Don't unlock the
critical section lock before unlinking dying active resources.
The unlock just before return is right (i.e. old code unlocked twice).

sysdeps/mach/hurd/jmp-unwind.c

index fcb09119cea4151ff0d0c5077c5a209195091c44..46e4b6157dbd5e9d25744d9fbdb3e19301ed575f 100644 (file)
@@ -49,7 +49,6 @@ _longjmp_unwind (jmp_buf env, int val)
         _JMPBUF_UNWINDS (env[0].__jmpbuf, ss->preempters))
     ss->preempters = ss->preempters->next;
 
-  __spin_unlock (&ss->critical_section_lock);
   __spin_unlock (&ss->lock);
 
   /* Iterate over the current thread's list of active resources.