Lines Matching refs:ret
88 CommandResult ret; in execute() local
90 if (!binder::Pipe(&ret.outPipe, &outWrite)) { in execute()
95 if (!binder::Pipe(&ret.errPipe, &errWrite)) { in execute()
107 ret.outPipe.reset(); in execute()
108 ret.errPipe.reset(); in execute()
124 ret.pid = pid; in execute()
141 while (ret.outPipe.ok() || ret.errPipe.ok()) { in execute()
146 if (ret.outPipe.ok()) { in execute()
148 *outPollFd = {.fd = ret.outPipe.get(), .events = POLLIN}; in execute()
150 if (ret.errPipe.ok()) { in execute()
152 *errPollFd = {.fd = ret.errPipe.get(), .events = POLLIN}; in execute()
160 if (!handlePoll(&ret.outPipe, outPollFd, &ret.stdoutStr)) { in execute()
164 if (!handlePoll(&ret.errPipe, errPollFd, &ret.stderrStr)) { in execute()
169 if (end && end(ret)) return ret; in execute()
173 while (ret.pid.has_value()) { in execute()
182 ret.pid = std::nullopt; in execute()
183 ret.exitCode = WEXITSTATUS(status); in execute()
185 ret.pid = std::nullopt; in execute()
186 ret.signal = WTERMSIG(status); in execute()
188 ALOGW("%s: pid %d stopped", __PRETTY_FUNCTION__, *ret.pid); in execute()
190 ALOGW("%s: pid %d continued", __PRETTY_FUNCTION__, *ret.pid); in execute()
197 return ret; in execute()