mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-27 02:30:06 +00:00
8024049: com/sun/jdi/ProcessAttachTest.sh shortens 7-digit pid to 6-digit
Replace cut call to awk Reviewed-by: sla, olagneau
This commit is contained in:
parent
49fdbfba20
commit
aab73f9356
@ -87,7 +87,7 @@ startDebuggee()
|
||||
# "java" process.
|
||||
if [ "$OS" = "Windows" ]; then
|
||||
sleep 2
|
||||
pid=`ps -o pid,ppid,comm|grep ${startpid}|grep "java"|cut -c1-6`
|
||||
pid=`ps -o pid,ppid,comm | awk '/${startpid}.+java/{ print $1 }'`
|
||||
fi
|
||||
|
||||
echo "Waiting for Debuggee to initialize..."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user