diff options
author | Benny Baumann <BenBE@geshi.org> | 2023-11-03 00:03:01 +0100 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2023-11-03 09:19:18 +0100 |
commit | 1a342749b33e2ceb974c7459fb2c885e1955ecac (patch) | |
tree | a53def090d9e666e41cb03d46e0346f26c34b918 /Action.c | |
parent | 7059ea3ef7fe242fa1d248f67eafcf82fc03e12f (diff) |
Warn on failure to kill a process
Diffstat (limited to 'Action.c')
-rw-r--r-- | Action.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; } |