[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:
@@ -1097,7 +1097,7 @@ function coredump_enable()
|
|||||||
return;
|
return;
|
||||||
fi;
|
fi;
|
||||||
echo "Setting core limit for $PID to infinite...";
|
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
|
# core - send SIGV and pull the core for process
|
||||||
|
Reference in New Issue
Block a user