ARM port reentrancy: Close per-thread stdout when runs to completion.

This commit is contained in:
Kelvin Lawson
2016-03-20 22:00:48 +00:00
parent 2c0965c4a9
commit 2f858283f1
2 changed files with 2 additions and 1 deletions

View File

@@ -92,6 +92,7 @@ static void thread_shell (void)
} }
/* Clean up after thread completion */ /* Clean up after thread completion */
fclose (stdout);
_reclaim_reent (&(curr_tcb->port_priv.reent)); _reclaim_reent (&(curr_tcb->port_priv.reent));
/* Thread has run to completion: remove it from the ready list */ /* Thread has run to completion: remove it from the ready list */

View File

@@ -76,7 +76,7 @@ extern int _exit(int val) __attribute__((weak));
*/ */
int _close(int file) int _close(int file)
{ {
return -1; return 0;
} }