summaryrefslogtreecommitdiff
path: root/nuttx/sched/task_delete.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched/task_delete.c')
-rw-r--r--nuttx/sched/task_delete.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/nuttx/sched/task_delete.c b/nuttx/sched/task_delete.c
index 47d9a868f..f6f2827e1 100644
--- a/nuttx/sched/task_delete.c
+++ b/nuttx/sched/task_delete.c
@@ -37,13 +37,15 @@
* Included Files
************************************************************/
-#include <nuttx/config.h>
+#include <nuttx/config.h>
-#include <sys/types.h>
-#include <sched.h>
-#include <nuttx/os_external.h>
-#include "os_internal.h"
-#include "sig_internal.h"
+#include <sys/types.h>
+#include <sched.h>
+#include <nuttx/os_external.h>
+#include "os_internal.h"
+#ifndef CONFIG_DISABLE_SIGNALS
+# include "sig_internal.h"
+#endif
/************************************************************
* Definitions
@@ -156,7 +158,9 @@ STATUS task_delete(pid_t pid)
/* Deallocate anything left in the TCB's queues */
+#ifndef CONFIG_DISABLE_SIGNALS
sig_cleanup(dtcb); /* Deallocate Signal lists */
+#endif
/* Deallocate its TCB */