Sort the task list by pid, as we're going to use bsearch() (bug 14403)

This commit is contained in:
Landry Breuil
2018-05-26 23:52:46 +02:00
parent 704411a38b
commit 159c3c1d0c
5 changed files with 10 additions and 0 deletions

View File

@@ -151,6 +151,8 @@ gboolean get_task_list (GArray *task_list)
}
free(kp);
g_array_sort (task_list, task_pid_compare_fn);
return TRUE;
}