In the sorting routine, sort by thread-id if two processes have the same PID.
Submitted by: Cyrille Lefevre
This commit is contained in:
parent
3cc90ff9d1
commit
b4b243242b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130972
@ -1025,7 +1025,9 @@ pscomp(const void *a, const void *b)
|
||||
DIFF_RETURN(ka, kb, ki_p->ki_tdev);
|
||||
}
|
||||
|
||||
/* PID's and TID's (threads) are sorted in ascending order. */
|
||||
DIFF_RETURN(ka, kb, ki_p->ki_pid);
|
||||
DIFF_RETURN(ka, kb, ki_p->ki_tid);
|
||||
return (0);
|
||||
}
|
||||
#undef DIFF_RETURN
|
||||
|
Loading…
Reference in New Issue
Block a user