Rename process_simple_wait to process_wait
Adding "simple" in the function name brings no benefit.
This commit is contained in:
@@ -9,7 +9,7 @@ process_check_success(process_t proc, const char *name) {
|
||||
return false;
|
||||
}
|
||||
exit_code_t exit_code;
|
||||
if (!process_simple_wait(proc, &exit_code)) {
|
||||
if (!process_wait(proc, &exit_code)) {
|
||||
if (exit_code != NO_EXIT_CODE) {
|
||||
LOGE("\"%s\" returned with value %" PRIexitcode, name, exit_code);
|
||||
} else {
|
||||
|
||||
@@ -48,7 +48,7 @@ process_terminate(process_t pid);
|
||||
|
||||
// wait and close the process
|
||||
bool
|
||||
process_simple_wait(process_t pid, exit_code_t *exit_code);
|
||||
process_wait(process_t pid, exit_code_t *exit_code);
|
||||
|
||||
// convenience function to wait for a successful process execution
|
||||
// automatically log process errors with the provided process name
|
||||
|
||||
Reference in New Issue
Block a user