Re: New library: libpidfile.
From: Pawel Jakub Dawidek (pjd_at_FreeBSD.org)
Date: 08/23/05
- Previous message: Pawel Jakub Dawidek: "Re: New library: libpidfile."
- In reply to: Tim Robbins: "Re: New library: libpidfile."
- Next in thread: Peter Jeremy: "Re: New library: libpidfile."
- Reply: Peter Jeremy: "Re: New library: libpidfile."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 23 Aug 2005 10:17:58 +0200 To: Tim Robbins <tjr@freebsd.org>
On Tue, Aug 23, 2005 at 12:51:06PM +1000, Tim Robbins wrote:
+> Pawel Jakub Dawidek wrote:
+>
+> >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 functionality 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:)
-- Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am!
- application/pgp-signature attachment: stored
- Previous message: Pawel Jakub Dawidek: "Re: New library: libpidfile."
- In reply to: Tim Robbins: "Re: New library: libpidfile."
- Next in thread: Peter Jeremy: "Re: New library: libpidfile."
- Reply: Peter Jeremy: "Re: New library: libpidfile."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: New library: libpidfile.
... +>>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
... +> number of larger libraries and think this belongs in an existing ... (freebsd-arch) - Re: New library: libpidfile.
... Pawel Jakub Dawidek wrote: ... functionality in libutil instead
of creating a separate library. ... To unsubscribe, ... (freebsd-arch) - Re: geom_journal panic: wrong offset 500107860990 for sectorsize 512 - RESOLVED
... Thanks for the patch. ... I'd prefer to have such functionality as a
part of ... libutil. ... Simlar to humanize_number, ... (freebsd-current)