From e5b78e248ee6ac4920e9f56c9cd72aecf66eef7f Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 12 Dec 2002 01:04:18 +0000 Subject: 2002-12-11 Vladimir Nesic * src/cancelrun.c, src/cleanuppop.c: Get the last real node not the permanent null last node. --- cpukit/posix/src/cleanuppop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpukit/posix/src/cleanuppop.c') diff --git a/cpukit/posix/src/cleanuppop.c b/cpukit/posix/src/cleanuppop.c index f9706bd408..f477d1f0c8 100644 --- a/cpukit/posix/src/cleanuppop.c +++ b/cpukit/posix/src/cleanuppop.c @@ -40,7 +40,8 @@ void pthread_cleanup_pop( return; _ISR_Disable( level ); - handler = (POSIX_Cancel_Handler_control *) _Chain_Tail( handler_stack ); + handler = (POSIX_Cancel_Handler_control *) + _Chain_Tail( handler_stack )->previous; _Chain_Extract_unprotected( &handler->Node ); _ISR_Enable( level ); -- cgit v1.2.3