MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / wait

Method wait

src/python/subprocess.cpp:110–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108 }
109
110 int SubProcess::wait() {
111 if (pid_ <= 0)
112 return exit_code_;
113
114 if (stdout_fd_ >= 0) {
115 close(stdout_fd_);
116 stdout_fd_ = -1;
117 }
118
119 int status;
120 if (waitpid(pid_, &status, 0) == pid_) {
121 if (WIFEXITED(status))
122 exit_code_ = WEXITSTATUS(status);
123 else if (WIFSIGNALED(status))
124 exit_code_ = 128 + WTERMSIG(status);
125 }
126 pid_ = -1;
127 return exit_code_;
128 }
129
130#else // Windows
131

Callers 15

pollMethod · 0.45
install_dependenciesMethod · 0.45
wait_allMethod · 0.45
worker_threadMethod · 0.45
enqueue_taskMethod · 0.45
acquire_decoderMethod · 0.45
seekMethod · 0.45
decodeThreadFuncMethod · 0.45
pushMethod · 0.45
popMethod · 0.45
popMethod · 0.45
runHeadlessWithTCPFunction · 0.45

Calls

no outgoing calls

Tested by 15

undoMethod · 0.36
TEST_FFunction · 0.36
workerMethod · 0.36
unloaderMethod · 0.36
reloaderMethod · 0.36
discovererMethod · 0.36
invokerMethod · 0.36
unregistererMethod · 0.36