Issue with Task delete

ali nasir supremenasir at yahoo.com
Wed Apr 23 05:41:54 UTC 2014


Hi,
 
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.
 
From this particular task, we have called the frepon to redirect the to stdout, stdin and stderr to dev/tty0
        freopen ("/dev/ttyS0","r",stdin);
        freopen ("/dev/ttyS0","w",stdout);
        freopen ("/dev/ttyS0","w",stderr);
 
With the same code, the task used to get deleted cleanly with the RTEMS4.10.2 version. 
 
If i remove the above lines of code from the task (with the RTEMS4.11), then the task gets deleted cleanly. 
 
This task is a higher priority task, and all further task scheduling gets affected if the task does not get deleted cleanly.
 
Any idea what wrong do i do?
 
-Ali
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20140422/ffe75934/attachment.html>


More information about the users mailing list