mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-13 08:38:43 +03:00
vere: fixes re-entrancy bug in term.c write() wrapper
This commit is contained in:
parent
6148c87525
commit
55dd1e2cf7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user