[Bugfix][Coredump] Fix coredump_enable() in envsetup.sh

-P means PID to affect (default $PPID), while -p means Pipe buffer (512 bytes), we should use -P here.

Bug: 234049197

Test: Perform ". build/envsetup.sh" in host, then run "coredump_enable $PID".

Change-Id: Id373f2a7adc56d6a40720ec900b2561c9dbea2b1
This commit is contained in:
xi yu
2022-05-26 12:41:21 +00:00
parent 76017c9301
commit addf4833b6

View File

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