mirror of
https://github.com/urbit/shrub.git
synced 2024-12-20 09:21:42 +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
|
// assert on true errors
|
||||||
//
|
//
|
||||||
|
// NB: can't call u3l_log here or we would re-enter _write()
|
||||||
|
//
|
||||||
if ( ret_i < 0 ) {
|
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);
|
c3_assert(0);
|
||||||
}
|
}
|
||||||
// continue partial writes
|
// continue partial writes
|
||||||
|
Loading…
Reference in New Issue
Block a user