diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2012-06-05 19:18:54 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2012-06-05 19:18:54 +0000 |
commit | 0d8f654343c020411477366c093d944d8ba230ff (patch) | |
tree | 04d59accebdb95ee37f90c556439aa6b30ca21f0 /htop.c | |
parent | fae598fce807c1ffddef97c712a0f98605130e3f (diff) |
allow 'k' to kill multiple processes again (when did this break?...)
Diffstat (limited to 'htop.c')
-rw-r--r-- | htop.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 { |