From owner-freebsd-arch@FreeBSD.ORG Wed Aug 24 17:15:07 2005 Return-Path: X-Original-To: freebsd-arch@FreeBSD.org Delivered-To: freebsd-arch@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 539F616A41F; Wed, 24 Aug 2005 17:15:07 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54DDE43D46; Wed, 24 Aug 2005 17:15:06 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id C4CB852CA4; Wed, 24 Aug 2005 19:15:04 +0200 (CEST) Received: from localhost (djy66.neoplus.adsl.tpnet.pl [83.24.2.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id A04A452BC8; Wed, 24 Aug 2005 19:14:58 +0200 (CEST) Date: Wed, 24 Aug 2005 19:14:37 +0200 From: Pawel Jakub Dawidek To: Yar Tikhiy Message-ID: <20050824171437.GA755@garage.freebsd.pl> References: <20050822213028.GB4812@garage.freebsd.pl> <20050823080754.GA47261@garage.freebsd.pl> <20050823202656.GB30465@funkthat.com> <20050824134540.GA94265@comp.chem.msu.su> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline In-Reply-To: <20050824134540.GA94265@comp.chem.msu.su> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng devel (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_00,RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: Hajimu UMEMOTO , FreeBSD-arch Subject: Re: New library: libpidfile. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Aug 2005 17:15:07 -0000 --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 24, 2005 at 05:45:40PM +0400, Yar Tikhiy wrote: +> > /me just checked NetBSD and OpenBSD's code at: +> > http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libutil/pidfile.c?rev=3D1.= 7&content-type=3Dtext/x-cvsweb-markup +> > http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libutil/pidfile.c?rev=3D= 1.7&content-type=3Dtext/x-cvsweb-markup +> >=20 +> > Neither, of these are safe to prevent multiple daemons from starting +> > up at the same time... Both NetBSD and OpenBSD doesn't even check if +> > a daemon is running.. it just blindly splats the pid into the file.. +>=20 +> Of course, giving advices is much easier than doing the real work, +> but I dare suggest cooperation with NetBSD and OpenBSD on this issue +> so that eventually we have a good and compatible implementation of +> the pidfile API in *BSD. I believe that the NetBSD and OpenBSD +> folks won't take offence if approached with a well-grounded explanation +> of why their current pidfile functions suck. They are of course free to adpot pidfile(3) and I'll gladly provide all needed explanations if they'll ask me. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --Kj7319i9nmIyA2yE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFDDKr9ForvXbEpPzQRAtyJAJ9QH9CixrM4vgH6g2qwoAVvvmQBcgCg9zjc +V5BcBYqgYbb86d7nMY4GjA= =saAv -----END PGP SIGNATURE----- --Kj7319i9nmIyA2yE--