<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div style="RIGHT: auto">Hi,</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">In the RTEMS4.11 i notice one of the task does not delete itself cleanly via a call to the rtems_task_delete. On further investigation i found that the newlib_delete_hook does not return. The newlib_delete_hook calls a fclose and from this fclose, there is no return.</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">From this particular task, we have called the frepon to redirect the to stdout, stdin and stderr to dev/tty0</div>
<div style="RIGHT: auto">        freopen ("/dev/ttyS0","r",stdin);<BR>        freopen ("/dev/ttyS0","w",stdout);<BR>        freopen ("/dev/ttyS0","w",stderr);</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">With the same code, the task used to get deleted cleanly with the RTEMS4.10.2 version. </div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">If i remove the above lines of code from the task (with the RTEMS4.11), then the task gets deleted cleanly. </div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">This task is a higher priority task, and all further task scheduling gets affected if the task does not get deleted cleanly.</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">Any idea what wrong do i do?</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">-Ali</div>
<div style="RIGHT: auto"> </div></div></body></html>