Path: blob/main/benchmarks/ipc-bench/files/patch-source_common_process.c
16461 views
--- source/common/process.c.orig 2022-04-28 15:09:32 UTC1+++ source/common/process.c2@@ -55,7 +55,7 @@ pid_t start_process(char *argv[]) {3// second is an array of arguments, where the4// command path has to be included as well5// (that's why argv[0] first)6- if (execv(argv[0], argv) == -1) {7+ if (execvp(argv[0], argv) == -1) {8throw("Error opening child process");9}10}11@@ -83,24 +83,18 @@ void start_children(char *prefix, int argc, char *argv12char server_name[100];13char client_name[100];1415- char *build_path = find_build_path();16-17// clang-format off18sprintf(19server_name,20- "%s/%s/%s-%s",21- build_path,22+ "%s-%s",23prefix,24- prefix,25"server"26);2728sprintf(29client_name,30- "%s/%s/%s-%s",31- build_path,32+ "%s-%s",33prefix,34- prefix,35"client"36);37// clang-format on38@@ -111,5 +105,4 @@ void start_children(char *prefix, int argc, char *argv39waitpid(c1_id, NULL, WUNTRACED);40waitpid(c2_id, NULL, WUNTRACED);4142- free(build_path);43}444546