Merge changes from topic "stacks_envsetup"

am: 759a6f75ff

Change-Id: I42facf6b00b039e37d62706bde4498117e90ec3f
This commit is contained in:
Josh Gao
2018-06-15 08:52:34 -07:00
committed by android-build-merger

View File

@@ -17,7 +17,8 @@
if [[ $1 =~ ^[0-9]+$ ]] ; then
PID="$1"
elif [ "$1" ] ; then
PIDLIST="$(pid $1)"
# Try --exact first, and fallback to nonexact if we find nothing.
PIDLIST="$(pid --exact $1 || pid $1)"
if [[ $PIDLIST =~ ^[0-9]+$ ]] ; then
PID="$PIDLIST"
elif [ "$PIDLIST" ] ; then