Detach fd in replaceShellCommand()
This commit is contained in:
parent
024af644e6
commit
3480410262
|
|
@ -99,6 +99,9 @@ public class ActivityController extends IActivityController.Stub {
|
||||||
|
|
||||||
}
|
}
|
||||||
}.exec((Binder) am, in.getFileDescriptor(), out.getFileDescriptor(), err.getFileDescriptor(), args, shellCallback, resultReceiver);
|
}.exec((Binder) am, in.getFileDescriptor(), out.getFileDescriptor(), err.getFileDescriptor(), args, shellCallback, resultReceiver);
|
||||||
|
if (in != null) in.detachFd();
|
||||||
|
if (out != null) out.detachFd();
|
||||||
|
if (err != null) err.detachFd();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue