diff options
author | Robin Jarry <robin@jarry.cc> | 2024-04-13 00:37:39 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-04-13 21:47:50 +0200 |
commit | 535e7fe3aa50dc56af6449673d13ca0c0ac4e961 (patch) | |
tree | 38e2ec1b4bc28cf7c880227b892dced16c9680c2 /completer | |
parent | 9849601906f3d53e38321e4b3a4461f60520bbca (diff) | |
download | aerc-535e7fe3aa50dc56af6449673d13ca0c0ac4e961.tar.gz |
vaxis: fix panic trace print on stderr
By default, vaxis tries to open stderr, stdout and stdin in that order
and uses the first one as its TTY file descriptor.
Upon exit, vaxis.Close() closes that file descriptor. When aerc panics,
our panic handler calls UICleanup() which is an alias for vaxis.Close().
This effectively makes os.Stderr unusable and all error messages are
written to a closed file descriptor. This also break the regular go
runtime panic() handler which prints on stderr as well.
Use an explicit /dev/tty path instead of stderr to keep it open.
Fixes: 6eff242090dc ("ui: so long tcell")
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Bence Ferdinandy <bence@ferdinandy.com>
Reviewed-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'completer')
0 files changed, 0 insertions, 0 deletions