summaryrefslogtreecommitdiffstats
path: root/Action.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2023-11-03 00:03:01 +0100
committerBenny Baumann <BenBE@geshi.org>2023-11-03 09:19:18 +0100
commit1a342749b33e2ceb974c7459fb2c885e1955ecac (patch)
treea53def090d9e666e41cb03d46e0346f26c34b918 /Action.c
parent7059ea3ef7fe242fa1d248f67eafcf82fc03e12f (diff)
Warn on failure to kill a process
Diffstat (limited to 'Action.c')
-rw-r--r--Action.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Action.c b/Action.c
index 698b1525..61cc1ef9 100644
--- a/Action.c
+++ b/Action.c
@@ -512,10 +512,14 @@ static Htop_Reaction actionKill(State* st) {
Panel_setHeader((Panel*)st->mainPanel, "Sending...");
Panel_draw((Panel*)st->mainPanel, false, true, true, State_hideFunctionBar(st));
refresh();
- MainPanel_foreachRow(st->mainPanel, Process_rowSendSignal, (Arg) { .i = sgn->key }, NULL);
+ bool ok = MainPanel_foreachRow(st->mainPanel, Process_rowSendSignal, (Arg) { .i = sgn->key }, NULL);
+ if (!ok) {
+ beep();
+ }
napms(500);
}
Panel_delete((Object*)signalsPanel);
+
return HTOP_REFRESH | HTOP_REDRAW_BAR | HTOP_UPDATE_PANELHDR;
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy