From: Jes Sorensen <Jes.Sorensen@redhat.com>
To: CoolCold <coolthecold@gmail.com>
Cc: neilb@suse.de, linux-raid@vger.kernel.org
Subject: Re: [PATCH] Use MDMON_DIR for pid files created in Monitor.c
Date: Thu, 23 Feb 2012 21:47:32 +0100 [thread overview]
Message-ID: <4F46A5E4.3030900@redhat.com> (raw)
In-Reply-To: <CAGqmV7o1G86SPn4vM-LuXtKr9-gi=boVMNJzBP93komSLsHEWA@mail.gmail.com>
On 02/23/12 21:39, CoolCold wrote:
> On Thu, Feb 2, 2012 at 3:45 PM, <Jes.Sorensen@redhat.com> wrote:
>> > From: Jes Sorensen <Jes.Sorensen@redhat.com>
>> >
>> > Other parts of mdadm/mdmon place .pid/.sock files in MDMON_DIR. This
>> > makes Monitor.c consistent with the rest.
>> >
>> > Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
>> > ---
>> > Monitor.c | 8 +++++---
>> > 1 files changed, 5 insertions(+), 3 deletions(-)
>> >
>> > diff --git a/Monitor.c b/Monitor.c
>> > index 77f22aa..7ed5282 100644
>> > --- a/Monitor.c
>> > +++ b/Monitor.c
>> > @@ -294,8 +294,10 @@ static int check_one_sharer(int scan)
>> > int pid, rv;
>> > FILE *fp;
>> > char dir[20];
>> > + char path[100];
> Just wondering why not something like PATH_MAX or similar constant? I
> guess there should be one, though 100 should be enough
I used 100 here because it was consistent with how it is handled
elsewhere in the code. Having a constant would be fine with me, as long
as it is applied consistently.
Jes
prev parent reply other threads:[~2012-02-23 20:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-02 11:45 [PATCH] Use MDMON_DIR for pid files created in Monitor.c Jes.Sorensen
2012-02-22 22:12 ` NeilBrown
2012-02-23 20:39 ` CoolCold
2012-02-23 20:47 ` Jes Sorensen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F46A5E4.3030900@redhat.com \
--to=jes.sorensen@redhat.com \
--cc=coolthecold@gmail.com \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.