From 0d8f654343c020411477366c093d944d8ba230ff Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Tue, 5 Jun 2012 19:18:54 +0000 Subject: [PATCH] allow 'k' to kill multiple processes again (when did this break?...) --- htop.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htop.c b/htop.c index e22e124b..ba291691 100644 --- a/htop.c +++ b/htop.c @@ -755,8 +755,8 @@ int main(int argc, char** argv) { if (!anyTagged) { Process* p = (Process*) Panel_getSelected(panel); if (p) selectedPid = p->pid; + if (selectedPid == 0) break; } - if (selectedPid == 0) break; SignalsPanel_reset((SignalsPanel*) killPanel); const char* fuFunctions[] = {"Send ", "Cancel ", NULL}; ListItem* sgn = (ListItem*) pickFromVector(panel, killPanel, 15, headerHeight, fuFunctions, defaultBar, header); @@ -770,7 +770,6 @@ int main(int argc, char** argv) { Process* p = (Process*) Panel_get(panel, i); if (p->tag) { Process_sendSignal(p, sgn->key); - anyTagged = true; } } } else {