In the sorting routine, sort by thread-id if two processes have the same PID.

Submitted by:	Cyrille Lefevre
This commit is contained in:
Garance A Drosehn 2004-06-23 11:28:17 +00:00
parent 3cc90ff9d1
commit b4b243242b

View File

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