mirror of
https://github.com/kelvinlawson/atomthreads.git
synced 2026-01-11 02:06:36 +01:00
ARM port reentrancy: Close per-thread stdout when runs to completion.
This commit is contained in:
@@ -92,6 +92,7 @@ static void thread_shell (void)
|
||||
}
|
||||
|
||||
/* Clean up after thread completion */
|
||||
fclose (stdout);
|
||||
_reclaim_reent (&(curr_tcb->port_priv.reent));
|
||||
|
||||
/* Thread has run to completion: remove it from the ready list */
|
||||
|
||||
@@ -76,7 +76,7 @@ extern int _exit(int val) __attribute__((weak));
|
||||
*/
|
||||
int _close(int file)
|
||||
{
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user