OpenJDK / loom / loom
changeset 22579:59fc5fc7a389
8024049: com/sun/jdi/ProcessAttachTest.sh shortens 7-digit pid to 6-digit
Summary: replace cut call to awk
Reviewed-by: sla, olagneau
author | dsamersoff |
---|---|
date | Mon, 27 Jan 2014 15:11:56 +0400 |
parents | ff8d54ac7c5c |
children | 6068d5e6c746 |
files | jdk/test/com/sun/jdi/ProcessAttachTest.sh |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/jdk/test/com/sun/jdi/ProcessAttachTest.sh Sat Jan 25 18:16:33 2014 +0800 +++ b/jdk/test/com/sun/jdi/ProcessAttachTest.sh Mon Jan 27 15:11:56 2014 +0400 @@ -87,7 +87,7 @@ # "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..."