Remove WaitForExit for now

This commit is contained in:
Krzosa Karol
2024-08-08 06:08:37 +02:00
parent 38afbe8816
commit 74ab76344b
2 changed files with 2 additions and 22 deletions

View File

@@ -386,26 +386,6 @@ Process CreateCommandLineProcess(String command_line, String working_dir) {
return process;
}
bool WaitForExit(Process *process) {
Assert(process->is_valid);
Win32Process *p = (Win32Process *)process->platform;
if (WaitForSingleObject(p->handle, INFINITE) != WAIT_OBJECT_0) {
Assert(!"Invalid codepath");
return false;
}
DWORD exit_code;
bool get_exit_code_failed = GetExitCodeProcess(p->handle, &exit_code) == 0;
if (get_exit_code_failed) {
exit_code = -1;
}
process->exit_code = (int)exit_code;
Win32CloseProcess(process);
return true;
}
bool PollExitCode(Process *process) {
Assert(process->is_valid);
Win32Process *p = (Win32Process *)process->platform;

View File

@@ -16,8 +16,8 @@
- drag and drop file into the window
- exe icon
combine glyph and selection rendering
debugging: resize dynamic array on every item add
- combine glyph and selection rendering
- debugging: resize dynamic array on every item add
- search as a command to execute which is going to be in the title bar
- search backwards