diff options
| author | 2020-11-11 16:17:19 +0000 | |
|---|---|---|
| committer | 2020-11-11 16:17:19 +0000 | |
| commit | 323c44a81fd521f7c79eb2b6b3d21b28345c36c5 (patch) | |
| tree | 66fae49ec574b9e3ada1a70c9c5d128d814db5c4 /libs/binder/IPCThreadState.cpp | |
| parent | b62f9e452e7e8822097ad8cf93e78ced054e0af2 (diff) | |
| parent | f183fdd024bfa87e929219ac537b7090eabae9b1 (diff) | |
Merge "libbinder: support TF_CLEAR_BUF"
Diffstat (limited to 'libs/binder/IPCThreadState.cpp')
| -rw-r--r-- | libs/binder/IPCThreadState.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp index 05fcc2b878..a3a2f871e6 100644 --- a/libs/binder/IPCThreadState.cpp +++ b/libs/binder/IPCThreadState.cpp @@ -1244,7 +1244,9 @@ status_t IPCThreadState::executeCommand(int32_t cmd) if ((tr.flags & TF_ONE_WAY) == 0) { LOG_ONEWAY("Sending reply to %d!", mCallingPid); if (error < NO_ERROR) reply.setError(error); - sendReply(reply, 0); + + constexpr uint32_t kForwardReplyFlags = TF_CLEAR_BUF; + sendReply(reply, (tr.flags & kForwardReplyFlags)); } else { if (error != OK || reply.dataSize() != 0) { alog << "oneway function results will be dropped but finished with status " |