launch #13

Merged
cromer merged 3 commits from launch into master 2021-06-28 16:05:54 -04:00
Showing only changes of commit f87f138f42 - Show all commits

View File

@ -38,7 +38,8 @@ void launch_program(StringArray *args) {
argv[args->size] = NULL; argv[args->size] = NULL;
execvp(args->array[0], argv); execvp(args->array[0], argv);
perror("execvpe"); fprintf(stderr, "%s: command not found\n", args->array[0]);
exit(EXIT_FAILURE);
} }
else if (child < 0) { else if (child < 0) {
perror("fork"); perror("fork");