mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-04 12:58:41 +00:00
tester for linkers
This commit is contained in:
committed by
Ryan Fleury
parent
19a7ada1dc
commit
b9768be4ed
@@ -774,6 +774,12 @@ os_process_join(OS_Handle handle, U64 endt_us)
|
||||
NotImplemented;
|
||||
}
|
||||
|
||||
internal B32
|
||||
os_process_join_exit_code(OS_Handle handle, U64 endt_us, int *exit_code_out)
|
||||
{
|
||||
NotImplemented;
|
||||
}
|
||||
|
||||
internal void
|
||||
os_process_detach(OS_Handle handle)
|
||||
{
|
||||
|
||||
@@ -255,6 +255,7 @@ internal void os_sleep_milliseconds(U32 msec);
|
||||
|
||||
internal OS_Handle os_process_launch(OS_ProcessLaunchParams *params);
|
||||
internal B32 os_process_join(OS_Handle handle, U64 endt_us);
|
||||
internal B32 os_process_join_exit_code(OS_Handle handle, U64 endt_us, int *exit_code_out);
|
||||
internal void os_process_detach(OS_Handle handle);
|
||||
|
||||
////////////////////////////////
|
||||
|
||||
@@ -1070,6 +1070,22 @@ os_process_join(OS_Handle handle, U64 endt_us)
|
||||
return (result == WAIT_OBJECT_0);
|
||||
}
|
||||
|
||||
internal B32
|
||||
os_process_join_exit_code(OS_Handle handle, U64 endt_us, int *exit_code_out)
|
||||
{
|
||||
B32 result = 0;
|
||||
if(os_process_join(handle, endt_us))
|
||||
{
|
||||
DWORD exit_code;
|
||||
if(GetExitCodeProcess((HANDLE)handle.u64[0], &exit_code))
|
||||
{
|
||||
*exit_code_out = exit_code;
|
||||
result = 1;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
internal void
|
||||
os_process_detach(OS_Handle handle)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user