client: if execv ever fails when attempting to launch switcher, exit as quickly as possible in the forked process.

Returning from the switcher_exec() may leave 2 boinc processes running until one crashes.
This commit is contained in:
Rom Walton 2014-07-28 13:28:51 -04:00
parent 7fb13c0eaf
commit 8384336a74
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ int switcher_exec(const char *util_filename, const char* cmdline) {
execv(util_path, argv);
fprintf(stderr, "execv failed in switcher_exec(%s, %s): %s", util_path, cmdline, strerror(errno));
return ERR_EXEC;
_exit(EXIT_FAILURE);
}
// Parent only needs one-way (read) pipes so close write pipes
close(fds_out[1]);