mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 09:50:40 +08:00
fix.修复Linux下子进程返回值的问题
This commit is contained in:
@@ -459,7 +459,7 @@ std::optional<std::vector<unsigned char>> asst::Controller::call_command(const s
|
||||
pipe_data.insert(pipe_data.end(), m_pipe_buffer.get(), m_pipe_buffer.get() + read_num);
|
||||
read_num = read(m_pipe_out[PIPE_READ], m_pipe_buffer.get(), PipeBuffSize);
|
||||
};
|
||||
} while (::waitpid(m_child, nullptr, WNOHANG) == 0);
|
||||
} while (::waitpid(m_child, &exit_ret, WNOHANG) == 0);
|
||||
}
|
||||
else {
|
||||
// failed to create child process
|
||||
|
||||
Reference in New Issue
Block a user