projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new fortune.
[feisty_meow.git]
/
nucleus
/
library
/
processes
/
process_control.cpp
diff --git
a/nucleus/library/processes/process_control.cpp
b/nucleus/library/processes/process_control.cpp
index ce0dbf03185f76ef29d4b08c80ab34eba858e7f2..c4025bdafcfebd1216c18e2f36d2ce3c41d37a56 100644
(file)
--- 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)
{
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;
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__
#ifdef __UNIX__
-#define CLOSE_T
MP
_FILE { \
+#define CLOSE_T
EMPORARY
_FILE { \
/* continuable_error("process_control", "get_processes_with_ps", error); */ \
if (output) { \
fclose(output); \
/* 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()!");
int sysret = system(cmd.s());
if (negative(sysret)) {
LOG("got negative return from system()!");
- CLOSE_T
MP
_FILE;
+ CLOSE_T
EMPORARY
_FILE;
return false;
}
output = fopen(tmpfile.s(), "r");
if (!output) {
LOG("failed to open process list file!");
return false;
}
output = fopen(tmpfile.s(), "r");
if (!output) {
LOG("failed to open process list file!");
- CLOSE_T
MP
_FILE;
+ CLOSE_T
EMPORARY
_FILE;
return false;
}
const int max_buff = 10000;
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);
}
if (size_read > 0)
accumulator += astring(astring::UNTERMINATED, buff, size_read);
}
- CLOSE_T
MP
_FILE;
+ CLOSE_T
EMPORARY
_FILE;
// parse the string up now.
bool first_line = true;
while (accumulator.length()) {
// parse the string up now.
bool first_line = true;
while (accumulator.length()) {