vere: fixes re-entrancy bug in term.c write() wrapper

This commit is contained in:
Joe Bryan 2020-06-26 11:32:04 -07:00
parent 6148c87525
commit 55dd1e2cf7

View File

@ -39,8 +39,10 @@ _write(c3_i fid_i, const void* buf_v, size_t len_i)
// assert on true errors
//
// NB: can't call u3l_log here or we would re-enter _write()
//
if ( ret_i < 0 ) {
u3l_log("term: write failed %s\r\n", strerror(errno));
fprintf(stderr, "term: write failed %s\r\n", strerror(errno));
c3_assert(0);
}
// continue partial writes