'ps aux' odditiy

Dariusz Kulinski takeda at takeda.tk
Wed Jun 9 00:35:10 GMT 2004


Hello jl,

Tuesday, June 8, 2004, 5:20:47 PM, you wrote:

>> Seems normal to me. I don't remember ps output being in order, unless you pipe it to
>> sort.

Yeah it was, I just checkend and output is also randomized.
It's because of how linklists in C works, when you add to
linklist an element then the element is added on beginning, so
actually on the beginning you should see programs that were recently
started or forked, and on the end the oldest programs.

-- 
Best regards,
 Dariusz                            mailto:takeda at takeda.tk
CCNA, SCSA, SCNA, LPIC, MCP certified
http://www.takeda.tk



More information about the freebsd-stable mailing list