From 5a098566ab50e777bdcdbaa2196a7c405b1a3297 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 9 Dec 2020 20:49:15 -0800 Subject: [PATCH] modules/console: Hide misleading exit code value until actual exit. --- modules/console.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/console.cc b/modules/console.cc index 324c12aee..b693f8d87 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -16768,7 +16768,7 @@ console_cmd__exec__list(opt &out, const string_view &line) out << " " << exec->id << " " << exec->pid - << " " << exec->code + << " " << (!exec->pid? lex_cast(exec->code): "-"_sv) << " " << exec->path << std::endl; @@ -16844,7 +16844,7 @@ console_cmd__app(opt &out, const string_view &line) << " " << std::right << std::setw(5) << app->child.id << " " << std::right << std::setw(10) << app->event_idx << " " << std::right << std::setw(8) << app->child.pid - << " " << std::right << std::setw(6) << app->child.code + << " " << std::right << std::setw(6) << (!app->child.pid? lex_cast(app->child.code): "---"_sv) << " " << std::left << std::setw(40) << room_id << " `" << app->argv.at(0) << "'" ;