summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/psignal.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/src/psignal.c')
-rw-r--r--cpukit/posix/src/psignal.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/cpukit/posix/src/psignal.c b/cpukit/posix/src/psignal.c
index dacf169626..3040718874 100644
--- a/cpukit/posix/src/psignal.c
+++ b/cpukit/posix/src/psignal.c
@@ -117,12 +117,10 @@ void _POSIX_signals_Post_switch_extension(
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
/*
- * api cannot be NULL or we would not have registered this API extension.
+ * api may be NULL in case of a thread close in progress
*/
- #if defined(RTEMS_DEBUG)
- if ( !api )
+ if ( !api )
return;
- #endif
/*
* If we invoke any user code, there is the possibility that