is child PID always minor to parent PID?

Dan Nelson dnelson at allantgroup.com
Wed Nov 30 16:20:02 GMT 2005


In the last episode (Nov 30), Javier Matos said:
> Hi, I need to know if the PID of a child process is always higher to
> parent PID because I made an algorithm to search a child and I want
> to know if I can start searching for a process that have a higher
> number than parent PID.

No; if the parent PID is near PID_MAX (sys/proc.h), then it's likely
that a child will have a low PID.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list