mirror of https://github.com/BOINC/boinc.git
build fix
This commit is contained in:
parent
c0c68b28b1
commit
104e3be353
|
@ -97,9 +97,10 @@ int error(const char* where, int retval) {
|
|||
//
|
||||
int launch(const char* distro, const char* cmd) {
|
||||
char launch_cmd[256];
|
||||
string err_msg;
|
||||
sprintf(launch_cmd, "echo $$; %s; touch boinc_job_done\n", cmd);
|
||||
int retval = app_wc.setup();
|
||||
if (retval) return error("app setup", retval);
|
||||
int retval = app_wc.setup(err_msg);
|
||||
if (retval) return error(err_msg.c_str(), retval);
|
||||
retval = app_wc.run_program_in_wsl(distro, launch_cmd, true);
|
||||
if (retval) return error("app run_program_in_wsl", retval);
|
||||
|
||||
|
@ -117,8 +118,8 @@ int launch(const char* distro, const char* cmd) {
|
|||
|
||||
// set up control channel
|
||||
//
|
||||
retval = ctl_wc.setup();
|
||||
if (retval) return error("ctl setup", retval);
|
||||
retval = ctl_wc.setup(err_msg);
|
||||
if (retval) return error(err_msg.c_str(), retval);
|
||||
retval = ctl_wc.run_program_in_wsl(distro, "", true);
|
||||
// empty string means run shell
|
||||
if (retval) return error("ctl run_program_in_wsl", retval);
|
||||
|
|
Loading…
Reference in New Issue