Skip to content

Commit 7942b5b

Browse files
committed
! show-busy-java-threads: rename global option value var pid -> pid_list
1 parent 1ad49b0 commit 7942b5b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bin/show-busy-java-threads

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ while true; do
191191
shift 2
192192
;;
193193
-p | --pid)
194-
pid="$2"
194+
pid_list="$2"
195195
shift 2
196196
;;
197197
-a | --append-file)
@@ -312,15 +312,15 @@ headInfo() {
312312
echo
313313
}
314314

315-
if [ -n "${pid}" ]; then
316-
readonly ps_process_select_options="-p $pid"
315+
if [ -n "${pid_list}" ]; then
316+
readonly ps_process_select_options="-p $pid_list"
317317
else
318318
readonly ps_process_select_options="-C java -C jsvc"
319319
fi
320320

321321
__die_when_no_java_process_found() {
322-
if [ -n "${pid}" ]; then
323-
die "process($pid) is not running, or not java process!"
322+
if [ -n "${pid_list}" ]; then
323+
die "process($pid_list) is not running, or not java process!"
324324
else
325325
die 'No java process found!'
326326
fi

0 commit comments

Comments
 (0)