[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-inetutils] [PATCH] create pidfile in inetd
From: |
Robert Millan |
Subject: |
Re: [bug-inetutils] [PATCH] create pidfile in inetd |
Date: |
Fri, 29 Aug 2003 13:51:47 +0000 |
User-agent: |
Mutt/1.5.4i |
On Thu, Aug 28, 2003 at 08:37:41PM +0000, Robert Millan wrote:
> On Thu, Aug 28, 2003 at 07:46:27PM +0000, Robert Millan wrote:
> >
> > Hi!
> >
> > This patch fixes inetd to create its corresponding pidfile in
> > /var/run/inetd.pid. It uses the PATH_INETPID macro, and defines
> > it in "paths". (thanks Jeroen for your tips)
>
> Shame on me, I forgot the patch. Well here is it.
I made some fixes to the patch, thanks to Jeroen and others who pointed
the bugs:
- fp is *FILE not int
- put the fp declaration into braces to be compliant with pre-c99 compilers
- replacing fprintf with syslog, since writing to stderr has no effect
- the macro should be PATH_INETDPID rather than PATH_INETPID for consistency
--
Robert Millan
"[..] but the delight and pride of Aule is in the deed of making, and in the
thing made, and neither in possession nor in his own mastery; wherefore he
gives and hoards not, and is free from care, passing ever on to some new work."
-- J.R.R.T, Ainulindale (Silmarillion)
inetd_pidfile.patch
Description: Text document