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

@@ -3,6 +3,11 @@
#include <libgen.h>
#include "log.h"
enum process_result
process_execute(const char *const argv[], process_t *pid) {
return process_execute_redirect(argv, pid, NULL, NULL, NULL);
}
bool
process_check_success(process_t proc, const char *name, bool close) {
if (proc == PROCESS_NONE) {