From owner-freebsd-questions Thu May 11 2:15: 2 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.inka.de (quechua.inka.de [212.227.14.2]) by hub.freebsd.org (Postfix) with ESMTP id 76F6F37B904 for ; Thu, 11 May 2000 02:14:57 -0700 (PDT) (envelope-from daemon@mips.inka.de) Received: from bigeye.rhein-neckar.de (uucp@) by mail.inka.de with local-bsmtp id 12pp3Y-0003v9-00; Thu, 11 May 2000 11:14:56 +0200 Received: (from daemon@localhost) by bigeye.rhein-neckar.de (8.9.3/8.9.3) id LAA98045 for freebsd-questions@freebsd.org; Thu, 11 May 2000 11:14:21 +0200 (CEST) (envelope-from daemon) From: naddy@mips.inka.de (Christian Weisgerber) Subject: Re: specify pid for a process? Date: 11 May 2000 11:14:20 +0200 Message-ID: <8fdtlc$2vnl$1@bigeye.rhein-neckar.de> References: To: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG disconnected wrote: > This might be a stupid question, but is there a way to run a process under > a specified (unused) pid? No. > It's not really for any good reason, but I'm rather curious, since I know > certain basic services always claim the same pid when you reboot, and I > don't think that's just because they fall into place that way. They do. Without dependencies on external I/O, the startup procedure should be deterministic. FreeBSD assigns PIDs sequentially, and if those services are started in the same order, the daemons will always get the same PIDs. (Some operating systems, e.g. OpenBSD, will assign PIDs in random distribution.) Amazing, how the belief in magic and the loss of the assumption of determinism has infiltrated popular computing. -- Christian "naddy" Weisgerber naddy@mips.inka.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message