cleaned out idiotic commenting of FUNCDEF, which had been done when a strict compile
[feisty_meow.git] / nucleus / library / processes / process_control.cpp
index ce0dbf03185f76ef29d4b08c80ab34eba858e7f2..c4025bdafcfebd1216c18e2f36d2ce3c41d37a56 100644 (file)
@@ -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()) {