mirror of https://github.com/BOINC/boinc.git
parent
d92791ca94
commit
a7cdd98126
|
@ -167,9 +167,6 @@ bool CLIENT_STATE::start_apps() {
|
||||||
//
|
//
|
||||||
open_slot = active_tasks.get_free_slot(nslots);
|
open_slot = active_tasks.get_free_slot(nslots);
|
||||||
if (open_slot < 0) {
|
if (open_slot < 0) {
|
||||||
if (log_flags.task_debug) {
|
|
||||||
printf("start_apps(): all slots full\n");
|
|
||||||
}
|
|
||||||
return action;
|
return action;
|
||||||
}
|
}
|
||||||
rp = results[i];
|
rp = results[i];
|
||||||
|
@ -196,8 +193,7 @@ bool CLIENT_STATE::start_apps() {
|
||||||
atp->result->active_task_state = PROCESS_COULDNT_START;
|
atp->result->active_task_state = PROCESS_COULDNT_START;
|
||||||
report_project_error(
|
report_project_error(
|
||||||
*(atp->result),retval,
|
*(atp->result),retval,
|
||||||
"Couldn't start the app for this result.\n"
|
"Couldn't start the app for this result.\n" );
|
||||||
);
|
|
||||||
}
|
}
|
||||||
action = true;
|
action = true;
|
||||||
set_client_state_dirty("start_apps");
|
set_client_state_dirty("start_apps");
|
||||||
|
|
|
@ -201,8 +201,10 @@ int NET_XFER_SET::poll(int max_bytes, int& bytes_transferred) {
|
||||||
|
|
||||||
bytes_transferred = 0;
|
bytes_transferred = 0;
|
||||||
while (1) {
|
while (1) {
|
||||||
timeout.tv_usec = 0;
|
timeout.tv_sec = timeout.tv_usec = 0;
|
||||||
|
#ifndef _WIN32
|
||||||
timeout.tv_sec = 1;
|
timeout.tv_sec = 1;
|
||||||
|
#endif
|
||||||
retval = do_select(max_bytes, n, timeout);
|
retval = do_select(max_bytes, n, timeout);
|
||||||
if (retval) return retval;
|
if (retval) return retval;
|
||||||
if (n == 0) break;
|
if (n == 0) break;
|
||||||
|
@ -216,7 +218,6 @@ int NET_XFER_SET::poll(int max_bytes, int& bytes_transferred) {
|
||||||
// do a select and do I/O on as many sockets as possible.
|
// do a select and do I/O on as many sockets as possible.
|
||||||
//
|
//
|
||||||
int NET_XFER_SET::do_select(int max_bytes, int& bytes_transferred, struct timeval timeout) {
|
int NET_XFER_SET::do_select(int max_bytes, int& bytes_transferred, struct timeval timeout) {
|
||||||
|
|
||||||
int n, fd, retval;
|
int n, fd, retval;
|
||||||
socklen_t i;
|
socklen_t i;
|
||||||
NET_XFER *nxp;
|
NET_XFER *nxp;
|
||||||
|
@ -233,7 +234,6 @@ int NET_XFER_SET::do_select(int max_bytes, int& bytes_transferred, struct timeva
|
||||||
|
|
||||||
fd_set read_fds, write_fds, error_fds;
|
fd_set read_fds, write_fds, error_fds;
|
||||||
|
|
||||||
|
|
||||||
FD_ZERO(&read_fds);
|
FD_ZERO(&read_fds);
|
||||||
FD_ZERO(&write_fds);
|
FD_ZERO(&write_fds);
|
||||||
FD_ZERO(&error_fds);
|
FD_ZERO(&error_fds);
|
||||||
|
|
Loading…
Reference in New Issue