X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Fprocesses%2Fprocess_control.cpp;h=c4025bdafcfebd1216c18e2f36d2ce3c41d37a56;hb=cb385d5b98b495ad9fb6b52eae546ac4ac7916e6;hp=ce0dbf03185f76ef29d4b08c80ab34eba858e7f2;hpb=457b128b77b5b4a0b7dd3094de543de2ce1477ad;p=feisty_meow.git diff --git a/nucleus/library/processes/process_control.cpp b/nucleus/library/processes/process_control.cpp index ce0dbf03..c4025bda 100644 --- a/nucleus/library/processes/process_control.cpp +++ b/nucleus/library/processes/process_control.cpp @@ -297,7 +297,7 @@ bool process_control::zap_process(basis::un_int to_zap) process_entry process_control::query_process(basis::un_int to_query) { -// FUNCDEF("query_process"); + FUNCDEF("query_process"); process_entry to_return; process_entry_array to_fill; @@ -507,7 +507,7 @@ bool process_control::get_processes_with_toolhelp(process_entry_array &to_fill) #ifdef __UNIX__ -#define CLOSE_TMP_FILE { \ +#define CLOSE_TEMPORARY_FILE { \ /* continuable_error("process_control", "get_processes_with_ps", error); */ \ if (output) { \ fclose(output); \ @@ -528,13 +528,13 @@ bool process_control::get_processes_with_ps(process_entry_array &to_fill) int sysret = system(cmd.s()); if (negative(sysret)) { LOG("got negative return from system()!"); - CLOSE_TMP_FILE; + CLOSE_TEMPORARY_FILE; return false; } output = fopen(tmpfile.s(), "r"); if (!output) { LOG("failed to open process list file!"); - CLOSE_TMP_FILE; + CLOSE_TEMPORARY_FILE; return false; } const int max_buff = 10000; @@ -548,7 +548,7 @@ LOG("failed to open process list file!"); if (size_read > 0) accumulator += astring(astring::UNTERMINATED, buff, size_read); } - CLOSE_TMP_FILE; + CLOSE_TEMPORARY_FILE; // parse the string up now. bool first_line = true; while (accumulator.length()) {