Make sure PlatformDependent.isRoot0() works fine in Android
.. by swallowing ErrnoException raised by process.destroy(). Fixes #1472
This commit is contained in:
parent
32aa661604
commit
63403884f7
@ -354,7 +354,11 @@ public final class PlatformDependent {
|
||||
}
|
||||
}
|
||||
if (p != null) {
|
||||
try {
|
||||
p.destroy();
|
||||
} catch (Exception e) {
|
||||
// Android sometimes triggers an ErrnoException.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user