MCPcopy Create free account
hub / github.com/apache/impala / ~Subprocess

Method ~Subprocess

be/src/kudu/util/subprocess.cc:276–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276Subprocess::~Subprocess() {
277 if (state_ == kRunning) {
278 LOG(WARNING) << Substitute(
279 "Child process $0 ($1) was orphaned. Sending signal $2...",
280 child_pid_.load(), JoinStrings(argv_, " "), sig_on_destruct_);
281 WARN_NOT_OK(KillAndWait(sig_on_destruct_),
282 Substitute("Failed to KillAndWait() with signal $0",
283 sig_on_destruct_));
284 }
285
286 for (int i = 0; i < 3; ++i) {
287 if (fd_state_[i] == PIPED && child_fds_[i] >= 0) {
288 int ret;
289 RETRY_ON_EINTR(ret, close(child_fds_[i]));
290 }
291 }
292}
293
294#if defined(__APPLE__)
295static int pipe2(int pipefd[2], int flags) {

Callers

nothing calls this directly

Calls 3

SubstituteFunction · 0.85
JoinStringsFunction · 0.85
loadMethod · 0.45

Tested by

no test coverage detected