757
755
set_task_state(PROCESS_ABORT_PENDING, "abort_task");
758
756
abort_time = gstate.now;
761
758
get_descendants(pid, descendants);
763
760
set_task_state(PROCESS_ABORTED, "abort_task");
798
795
int ACTIVE_TASK::request_reread_prefs() {
801
799
link_user_files();
803
retval = write_app_init_file();
801
init_app_init_data(aid);
802
retval = write_app_init_file(aid);
804
803
if (retval) return retval;
805
804
graphics_request_queue.msg_queue_send(
806
805
xml_graphics_modes[MODE_REREAD_PREFS],
813
812
// (e.g. because proxy settings have changed: this is for F@h)
815
814
int ACTIVE_TASK::request_reread_app_info() {
816
int retval = write_app_init_file();
816
init_app_init_data(aid);
817
int retval = write_app_init_file(aid);
817
818
if (retval) return retval;
818
819
process_control_queue.msg_queue_send(
819
820
"<reread_app_info/>",
1102
1103
bool ACTIVE_TASK::get_app_status_msg() {
1103
1104
char msg_buf[MSG_CHANNEL_SIZE];
1106
1109
if (!app_client_shm.shm) {
1107
1110
msg_printf(result->project, MSG_INFO,
1135
1138
parse_double(msg_buf, "<fpops_cumulative>", result->fpops_cumulative);
1136
1139
parse_double(msg_buf, "<intops_per_cpu_sec>", result->intops_per_cpu_sec);
1137
1140
parse_double(msg_buf, "<intops_cumulative>", result->intops_cumulative);
1141
if (parse_double(msg_buf, "<bytes_sent>", dtemp)) {
1142
if (dtemp > bytes_sent) {
1143
daily_xfer_history.add(dtemp - bytes_sent, true);
1147
if (parse_double(msg_buf, "<bytes_received>", dtemp)) {
1148
if (dtemp > bytes_received) {
1149
daily_xfer_history.add(dtemp - bytes_received, false);
1151
bytes_received = dtemp;
1138
1153
parse_int(msg_buf, "<want_network>", want_network);
1154
if (parse_int(msg_buf, "<other_pid>", other_pid)) {
1155
// for now, we handle only one of these
1157
other_pids.push_back(other_pid);
1139
1159
if (current_cpu_time < 0) {
1140
1160
msg_printf(result->project, MSG_INFO,
1141
1161
"app reporting negative CPU: %f", current_cpu_time