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
@ -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