aboutsummaryrefslogtreecommitdiffstats
path: root/commands/compose/multipart.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2024-04-13 00:37:39 +0200
committerRobin Jarry <robin@jarry.cc>2024-04-13 21:47:50 +0200
commit535e7fe3aa50dc56af6449673d13ca0c0ac4e961 (patch)
tree38e2ec1b4bc28cf7c880227b892dced16c9680c2 /commands/compose/multipart.go
parent9849601906f3d53e38321e4b3a4461f60520bbca (diff)
downloadaerc-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 'commands/compose/multipart.go')
0 files changed, 0 insertions, 0 deletions