Use ulimit -p rather than prlimit.

Neither is standard, but ulimit is toybox and therefore a bit more
regular and at least has help text.

Change-Id: Id7ba9adc9ca256b821d8060506010abef30dee28
This commit is contained in:
Elliott Hughes 2016-03-07 13:53:53 -08:00
parent ef0c20621d
commit 910a355947
1 changed files with 1 additions and 1 deletions

View File

@ -1029,7 +1029,7 @@ function coredump_enable()
return;
fi;
echo "Setting core limit for $PID to infinite...";
adb shell prlimit $PID 4 -1 -1
adb shell /system/bin/ulimit -p $PID -c unlimited
}
# core - send SIGV and pull the core for process