Merge "debuggerd_handler: fix prctl return value check." am: 36b8ccb9b2 am: f18d64b2d6
am: dd0aebcb62
Change-Id: I1fd982eaae63704178ab8828575b120b7cd03424
This commit is contained in:
commit
48505eef5e
1 changed files with 1 additions and 1 deletions
|
|
@ -218,7 +218,7 @@ static int debuggerd_dispatch_pseudothread(void* arg) {
|
|||
close(pipefds[1]);
|
||||
|
||||
// Set all of the ambient capability bits we can, so that crash_dump can ptrace us.
|
||||
for (unsigned long i = 0; prctl(PR_CAPBSET_READ, i, 0, 0, 0); ++i) {
|
||||
for (unsigned long i = 0; prctl(PR_CAPBSET_READ, i, 0, 0, 0) != -1; ++i) {
|
||||
prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, i, 0, 0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue