Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
libcore
/
319a3b994703aac84df7bcde272adfcb3cdbbbf0
/
.
/
jdk
/
test
/
sun
/
tools
/
jps
/
jps-m_Output2.awk
blob: 0ba09ad1fc8d75305b1ef89b3f8d984a3809a5cc [
file
] [
log
] [
blame
]
#
BEGIN
{
totallines
=
0
;
matched
=
0
}
/^[
0
-
9
]+
Sleeper$
/
{
matched
++;
}
/^[
0
-
9
]+
Jps
-
m$
/
{
matched
++;
}
{
totallines
++;
print
$0
}
END
{
if
((
totallines
>
0
)
&&
(
matched
>=
2
))
{
exit
0
}
else
{
exit
1
}
}