Skip to content
Snippets Groups Projects
Commit c3740162 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Merge branch 'pte_waitpid' into 'master'

pte: pte_osThreadWaitForEnd checking return of Sys::waitpid

Closes #165

See merge request !359
parents 07329c9e 4d244dee
No related branches found
No related tags found
1 merge request!359pte: pte_osThreadWaitForEnd checking return of Sys::waitpid
Pipeline #11779 failed
...@@ -233,7 +233,9 @@ pub unsafe extern "C" fn pte_osThreadDelete(handle: pte_osThreadHandle) -> pte_o ...@@ -233,7 +233,9 @@ pub unsafe extern "C" fn pte_osThreadDelete(handle: pte_osThreadHandle) -> pte_o
#[no_mangle] #[no_mangle]
pub unsafe extern "C" fn pte_osThreadWaitForEnd(handle: pte_osThreadHandle) -> pte_osResult { pub unsafe extern "C" fn pte_osThreadWaitForEnd(handle: pte_osThreadHandle) -> pte_osResult {
let mut status = 0; let mut status = 0;
Sys::waitpid(handle, &mut status, 0); if Sys::waitpid(handle, &mut status, 0) < 0 {
return PTE_OS_GENERAL_FAILURE;
}
PTE_OS_OK PTE_OS_OK
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment