From owner-freebsd-questions@FreeBSD.ORG Wed Nov 30 16:20:02 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 53AFA16A42A for ; Wed, 30 Nov 2005 16:20:02 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id E564D43D62 for ; Wed, 30 Nov 2005 16:20:00 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id jAUGJvpO004401; Wed, 30 Nov 2005 10:19:57 -0600 (CST) (envelope-from dan) Date: Wed, 30 Nov 2005 10:19:57 -0600 From: Dan Nelson To: Javier Matos Message-ID: <20051130161957.GE54383@dan.emsphone.com> References: <001601c5f5c2$a77a0720$0301a8c0@mindcrash> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001601c5f5c2$a77a0720$0301a8c0@mindcrash> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.11 Cc: freebsd-questions@freebsd.org Subject: Re: is child PID always minor to parent PID? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Nov 2005 16:20:02 -0000 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