Remove WaitForExit for now
This commit is contained in:
@@ -386,26 +386,6 @@ Process CreateCommandLineProcess(String command_line, String working_dir) {
|
|||||||
return process;
|
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) {
|
bool PollExitCode(Process *process) {
|
||||||
Assert(process->is_valid);
|
Assert(process->is_valid);
|
||||||
Win32Process *p = (Win32Process *)process->platform;
|
Win32Process *p = (Win32Process *)process->platform;
|
||||||
|
|||||||
@@ -16,8 +16,8 @@
|
|||||||
- drag and drop file into the window
|
- drag and drop file into the window
|
||||||
- exe icon
|
- exe icon
|
||||||
|
|
||||||
combine glyph and selection rendering
|
- combine glyph and selection rendering
|
||||||
debugging: resize dynamic array on every item add
|
- debugging: resize dynamic array on every item add
|
||||||
|
|
||||||
- search as a command to execute which is going to be in the title bar
|
- search as a command to execute which is going to be in the title bar
|
||||||
- search backwards
|
- search backwards
|
||||||
|
|||||||
Reference in New Issue
Block a user