summaryrefslogtreecommitdiffstats
path: root/darwin
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2020-08-20 14:19:53 +1000
committerNathan Scott <nathans@redhat.com>2020-08-20 14:19:53 +1000
commita82fd262d75f8494c34416e49c6241c29692676e (patch)
tree5c4ff9b8a872ca06e8e200a034099c736da1e160 /darwin
parentcdff8aea2ab10870af1aad5bdb6949ea0fd407b0 (diff)
parent63fbc3b51704b4b122d2cab57de7e7f9dfcc03b1 (diff)
Merge branch 'hishamhm-pull-960'
Diffstat (limited to 'darwin')
-rw-r--r--darwin/DarwinProcess.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/darwin/DarwinProcess.c b/darwin/DarwinProcess.c
index e1a16f9c..bf5fd577 100644
--- a/darwin/DarwinProcess.c
+++ b/darwin/DarwinProcess.c
@@ -212,7 +212,7 @@ ERROR_B:
ERROR_A:
retval = xStrdup(k->kp_proc.p_comm);
*basenameOffset = strlen(retval);
-
+
return retval;
}
@@ -302,11 +302,11 @@ void DarwinProcess_setFromLibprocPidinfo(DarwinProcess *proc, DarwinProcessList
void DarwinProcess_scanThreads(DarwinProcess *dp) {
Process* proc = (Process*) dp;
kern_return_t ret;
-
+
if (!dp->taskAccess) {
return;
}
-
+
if (proc->state == 'Z') {
return;
}
@@ -317,7 +317,7 @@ void DarwinProcess_scanThreads(DarwinProcess *dp) {
dp->taskAccess = false;
return;
}
-
+
task_info_data_t tinfo;
mach_msg_type_number_t task_info_count = TASK_INFO_MAX;
ret = task_info(port, TASK_BASIC_INFO, (task_info_t) tinfo, &task_info_count);
@@ -325,7 +325,7 @@ void DarwinProcess_scanThreads(DarwinProcess *dp) {
dp->taskAccess = false;
return;
}
-
+
thread_array_t thread_list;
mach_msg_type_number_t thread_count;
ret = task_threads(port, &thread_list, &thread_count);
@@ -334,7 +334,7 @@ void DarwinProcess_scanThreads(DarwinProcess *dp) {
mach_port_deallocate(mach_task_self(), port);
return;
}
-
+
integer_t run_state = 999;
for (unsigned int i = 0; i < thread_count; i++) {
thread_info_data_t thinfo;

© 2014-2024 Faster IT GmbH | imprint | privacy policy