From 55dd1e2cf7645fd53f834f0311e50363eeca238f Mon Sep 17 00:00:00 2001 From: Joe Bryan Date: Fri, 26 Jun 2020 11:32:04 -0700 Subject: [PATCH] vere: fixes re-entrancy bug in term.c write() wrapper --- pkg/urbit/vere/io/term.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/urbit/vere/io/term.c b/pkg/urbit/vere/io/term.c index e9cd30bbee..e3c7f4cb26 100644 --- a/pkg/urbit/vere/io/term.c +++ b/pkg/urbit/vere/io/term.c @@ -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