From owner-freebsd-questions@FreeBSD.ORG Fri Jun 13 15:45:44 2003 Return-Path: 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 781FD37B401 for ; Fri, 13 Jun 2003 15:45:44 -0700 (PDT) Received: from priv-edtnes53.telusplanet.net (defout.telus.net [199.185.220.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB6F443F75 for ; Fri, 13 Jun 2003 15:45:43 -0700 (PDT) (envelope-from viktorlazlo@telus.net) Received: from njamn8or ([207.6.229.118]) by priv-edtnes53.telusplanet.net ESMTP <20030613224541.SWFL27854.priv-edtnes53.telusplanet.net@njamn8or>; Fri, 13 Jun 2003 16:45:41 -0600 Date: Fri, 13 Jun 2003 15:45:16 -0700 (PDT) From: Viktor Lazlo X-X-Sender: viktorlazlo@njamn8or.no-ip.org To: Dragoncrest In-Reply-To: <5.2.0.9.2.20030613114007.00a18230@pop.voyager.net> Message-ID: <20030613154336.T26939@njamn8or.no-ip.org> References: <5.2.0.9.2.20030613114007.00a18230@pop.voyager.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: Assigning a PID to a given program? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2003 22:45:44 -0000 On Fri, 13 Jun 2003, Dragoncrest wrote: > Ok, not sure if this is possible, but I thought I'd ask just in > case. What I'm looking to do is to assign a given Program ID number to a > specific process if possible. I know FBD assigns them automatically as > they're executed, but I've hit into at least one or two apps that's looking > for a particular program running on a particular PID (don't ask me > why. it's kinda stupid as far as I'm concerned) in order to connect to > it. Yet the program is running with a totally different PID. Is there a > way to assign a specific PID number to a program at launch or maybe even > reset the PID counter to zero so that the program takes the lowest > available PID at launch? Just curious mostly. Thanks. This seems highly suspicious to me--any properly written software should be relying on the host OS to assign the PID when the applicatin is launched. Are you sure it's not really looking for the active session's PID in a variable or file that it's configuration is not creating or updating? Cheers, Viktor