Add on_exit(); Re-order some logic in the task shutdown sequence. Sometimes some complex logic needs to execute when closing file descriptors and this needs to happen early while the task is still healthy
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4354 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
389e425268
commit
95faa59faa
|
@ -478,7 +478,7 @@ VxWorks provides the following similar interface:
|
||||||
<b>Description:</b> This function causes the calling task to cease
|
<b>Description:</b> This function causes the calling task to cease
|
||||||
to exist -- its stack and TCB will be deallocated. exit differs from
|
to exist -- its stack and TCB will be deallocated. exit differs from
|
||||||
_exit in that it flushes streams, closes file descriptors and will
|
_exit in that it flushes streams, closes file descriptors and will
|
||||||
execute any function registered with atexit().
|
execute any function registered with <code>atexit()</code> or <code>on_exit()</code>.
|
||||||
<p>
|
<p>
|
||||||
<b>Input Parameters:</b>
|
<b>Input Parameters:</b>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
Loading…
Reference in New Issue