Sort the task list by pid, as we're going to use bsearch() (bug 14403)
This commit is contained in:
@@ -151,6 +151,8 @@ gboolean get_task_list (GArray *task_list)
|
||||
}
|
||||
free(kp);
|
||||
|
||||
g_array_sort (task_list, task_pid_compare_fn);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user