The return value of `execvp` is irrelevant because this function only ever
returns when it fails. In this situation, the failure cause is in the `errno`
global, not in the return value.
#if defined HAVE_SYS_TYPES_H && defined HAVE_UNISTD_H
char *exec_argv[3] = {BROWSER, NULL, NULL};
pid_t pid;
- int err;
exec_argv[1] = job->selected_href;
fprintf(stderr,"fork failed: %s\n", strerror(errno));
}
else if (pid == 0) {
- err = execvp(exec_argv[0], exec_argv);
+ execvp(exec_argv[0], exec_argv);
fprintf(stderr,"error starting %s: %s\n", exec_argv[0], strerror(errno));
}
#else