Factorize common impl of process_execute()

Both implementations are the same. Move them to the common process.c.
This commit is contained in:
Romain Vimont
2021-11-11 17:49:47 +01:00
parent e80e6631e4
commit 7e93abcf6d
3 changed files with 5 additions and 10 deletions

View File

@@ -142,11 +142,6 @@ error_close_stdin:
return ret;
}
enum process_result
process_execute(const char *const argv[], HANDLE *handle) {
return process_execute_redirect(argv, handle, NULL, NULL, NULL);
}
bool
process_terminate(HANDLE handle) {
return TerminateProcess(handle, 1);