summaryrefslogtreecommitdiff
path: root/nuttx/sched/exit.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-12 03:42:08 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-12 03:42:08 +0000
commit95317af605c883b464a4c5b524632193614bfd24 (patch)
treee624625959a92777dd79d8949e46072752103ae9 /nuttx/sched/exit.c
parentbf91815c3fd4be584af323447605624b33932f63 (diff)
downloadpx4-nuttx-95317af605c883b464a4c5b524632193614bfd24.tar.gz
px4-nuttx-95317af605c883b464a4c5b524632193614bfd24.tar.bz2
px4-nuttx-95317af605c883b464a4c5b524632193614bfd24.zip
Add SLIP driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3369 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/exit.c')
-rw-r--r--nuttx/sched/exit.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/nuttx/sched/exit.c b/nuttx/sched/exit.c
index b1f743d97..2f287009b 100644
--- a/nuttx/sched/exit.c
+++ b/nuttx/sched/exit.c
@@ -130,11 +130,13 @@ void exit(int status)
/* If an exit function was registered, call it now. */
- if (tcb->exitfunc) {
-
- (*tcb->exitfunc)();
+#ifdef CONFIG_SCHED_ATEXT
+ if (tcb->exitfunc)
+ {
+ (*tcb->exitfunc)();
+ }
+#endif
- } /* end if */
/* Then "really" exit */
_exit(status);