From owner-freebsd-arch@FreeBSD.ORG Tue Aug 23 08:18:27 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 B029716A41F; Tue, 23 Aug 2005 08:18:27 +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 32B5A43D58; Tue, 23 Aug 2005 08:18:26 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id CBE9A52C95; Tue, 23 Aug 2005 10:18:24 +0200 (CEST) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 8BD1D52C2F; Tue, 23 Aug 2005 10:18:17 +0200 (CEST) Date: Tue, 23 Aug 2005 10:17:58 +0200 From: Pawel Jakub Dawidek To: Tim Robbins Message-ID: <20050823081758.GB47261@garage.freebsd.pl> References: <20050822213028.GB4812@garage.freebsd.pl> <430A8F1A.6090607@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QKdGvSO+nmPlgiQ/" Content-Disposition: inline In-Reply-To: <430A8F1A.6090607@freebsd.org> 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=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: 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: Tue, 23 Aug 2005 08:18:27 -0000 --QKdGvSO+nmPlgiQ/ Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 23, 2005 at 12:51:06PM +1000, Tim Robbins wrote: +> Pawel Jakub Dawidek wrote: +>=20 +> >I'd like to commit a small library for handling "pidfiles". +> This sounds like a good idea to me, but you might consider putting the f= unctionality in libutil instead of creating a separate library. If you look at the perforce logs, you'll see it was in libutil at first. While I like libutil for some single functions (I added humanize_number(3) in there), but I don't like putting there everything. In my first concept (when it was part of libutil) I allocated memory to store needed informations, because I didn't wanted to use preallocated memory (someone linking libutil doesn't have to use pidfile functionality). Now, when it is a small library I can use preallocated memory and eliminate one point of potential failure. It also now has 4 functions, which makes it a good candidate of small, nice, lightweight library:) --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --QKdGvSO+nmPlgiQ/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFDCtu2ForvXbEpPzQRAo6iAKDcKPIkRn6EzdvQ4+odiKUgyW/emACg7KRG cAkpIhRfq9DdADBqpFABqVI= =rAE+ -----END PGP SIGNATURE----- --QKdGvSO+nmPlgiQ/--