MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / close_stdin

Method close_stdin

lib/tiny-process/process_unix.cpp:476–483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

474}
475
476void Process::close_stdin() noexcept {
477 std::lock_guard<std::mutex> lock(stdin_mutex);
478 if(stdin_fd) {
479 if(data.id > 0)
480 close(*stdin_fd);
481 stdin_fd.reset();
482 }
483}
484
485void Process::kill(bool force) noexcept {
486 std::lock_guard<std::mutex> lock(close_mutex);

Callers

nothing calls this directly

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected