Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
0d8f6543
Commit
0d8f6543
authored
Jun 05, 2012
by
Hisham Muhammad
Browse files
allow 'k' to kill multiple processes again (when did this break?...)
parent
fae598fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
htop.c
View file @
0d8f6543
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment