ExecAndWait

This commit is contained in:
Krzosa Karol
2024-08-12 08:12:30 +02:00
parent d6dd7c9eab
commit 3251df6068
6 changed files with 43 additions and 6 deletions

View File

@@ -42,6 +42,7 @@ struct StdoutPollInfo {
struct Process {
bool is_valid;
String error_message;
bool exited;
int exit_code;
char platform[6 * 8];
@@ -52,5 +53,6 @@ struct Process {
Process CreateCommandLineProcess(String command_line, String working_dir);
bool WaitForExit(Process *process);
bool PollExitCode(Process *process);
void CloseProcess(Process *process);
void KillProcess(Process *process);
StdoutPollInfo PollStdout(Process *process, char *buffer, int64_t buffer_size);