From addf4833b6fc471ec3b39ea7f2dd236734c9dbce Mon Sep 17 00:00:00 2001 From: xi yu Date: Thu, 26 May 2022 12:41:21 +0000 Subject: [PATCH] [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 --- envsetup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/envsetup.sh b/envsetup.sh index f141ff5c19..979848d82f 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -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