From 37cf2135bc31fd20288a4fddd41e6f052858bf25 Mon Sep 17 00:00:00 2001 From: Joe Bryan Date: Mon, 22 Jun 2020 10:32:08 -0700 Subject: [PATCH] term: ignore SIGWINCH if there's no active terminal driver --- pkg/urbit/vere/io/term.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pkg/urbit/vere/io/term.c b/pkg/urbit/vere/io/term.c index 890bd407c4..3bd3da929f 100644 --- a/pkg/urbit/vere/io/term.c +++ b/pkg/urbit/vere/io/term.c @@ -977,13 +977,16 @@ u3_term_get_blew(c3_l tid_l) void u3_term_ef_winc(void) { - u3_noun wir = u3nt(c3__term, '1', u3_nul); - u3_noun cad = u3nc(c3__blew, u3_term_get_blew(1)); + // XX groace, this should be a global handler sent to each pier + // + if ( u3_Host.uty_u->car_u ) { + u3_noun wir = u3nt(c3__term, '1', u3_nul); + u3_noun cad = u3nc(c3__blew, u3_term_get_blew(1)); - c3_assert( 1 == u3_Host.uty_u->tid_l ); - c3_assert( u3_Host.uty_u->car_u ); + c3_assert( 1 == u3_Host.uty_u->tid_l ); - _term_ovum_plan(u3_Host.uty_u->car_u, wir, cad); + _term_ovum_plan(u3_Host.uty_u->car_u, wir, cad); + } } /* u3_term_ef_ctlc(): send ^C on console.