From owner-cvs-etc Mon Jun 2 13:03:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id NAA08685 for cvs-etc-outgoing; Mon, 2 Jun 1997 13:03:03 -0700 (PDT) Received: from lsd.relcom.eu.net (lsd.relcom.eu.net [193.124.23.23]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA08626; Mon, 2 Jun 1997 13:02:22 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by lsd.relcom.eu.net (8.8.5/8.8.5) with SMTP id AAA24275; Tue, 3 Jun 1997 00:01:43 +0400 (MSD) Date: Tue, 3 Jun 1997 00:01:42 +0400 (MSD) From: =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= X-Sender: ache@lsd.relcom.eu.net To: Adam David cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-etc@FreeBSD.ORG Subject: Re: cvs commit: src/etc rc In-Reply-To: <199706022020.UAA10482@veda.is> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-etc@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, 2 Jun 1997, Adam David wrote: > Do you mean that processes don't die and leave pidfiles behind, or that > it is impossible to check whether there is a program running with the same > name and PID as the pidfile claims? > I am witness to the former, and have used the latter with success in the > case of individual programs. It might not be possible to automatically > double-check in a generic context because there is no guaranteed naming > convention. However, given the name of the program and its pidfile, it > is a simple matter to check first, because two different programs cannot > have the same PID at the same time. Extracting program name from 'ps'-like info isn't always possible, it is small probability that garbadge will be returned, another name, or program just wipe their own name with something else. -- Andrey A. Chernov http://www.nagual.pp.ru/~ache/