Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Nov 2005 10:19:57 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Javier Matos <javierlu@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: is child PID always minor to parent PID?
Message-ID:  <20051130161957.GE54383@dan.emsphone.com>
In-Reply-To: <001601c5f5c2$a77a0720$0301a8c0@mindcrash>
References:  <001601c5f5c2$a77a0720$0301a8c0@mindcrash>

next in thread | previous in thread | raw e-mail | index | archive | help
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@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051130161957.GE54383>