From: richard.purdie@linuxfoundation.org
To: Jon Mason <jdmason@kudzu.us>
Cc: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] oe_syslog.py: Handle syslogd/klogd restart race
Date: Fri, 21 Jun 2019 17:58:46 +0100 [thread overview]
Message-ID: <1a9c38dca2be655c935d435a6cf6f52ae8342bf6.camel@linuxfoundation.org> (raw)
In-Reply-To: <CAPoiz9zekGpeDRd=PMCneuzNeBgEBzHjgoKvcrR5WjnWHUDSiw@mail.gmail.com>
On Fri, 2019-06-21 at 12:39 -0400, Jon Mason wrote:
> On Fri, Jun 21, 2019 at 12:14 PM Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
> > On Fri, 2019-06-21 at 11:42 -0400, Jon Mason wrote:
> > >
> > Thanks, I think this is reasonable however I think we may need to
> > make
> > the above a function and then call it from other places in the
> > tests in
> > that file.
> >
> > test_syslog_restart should check it did restart using the above
> >
> > test_syslog_startup_config does a second restart which we should
> > also
> > check?
>
> Seems reasonable. I'll crank out v2 shortly.
>
> > Out of interest were you able to see error codes being returned in
> > status in your tests?
>
> I used code to force every error path during development, but not
> that
> the testcase will fail. So, your question did cause me to notice a
> bug in the code when verifying that the old ones are no longer
> running. That should return 0 if still running, which wouldn't cause
> the assert outside of the loop. So, I'll need to tweak this there.
> v2 will have this fix as well.
The reason I ask is that its far from clear that busybox's starts-stop-
daemon would notice if the daemon didn't restart so I don't think we
can reliably trust status to be set correctly.
Is there any reason we can't run these checks regardless of status?
I realise there is slightly more overhead but it might give us more
chance of fixing all the races?
Cheers,
Richard
next prev parent reply other threads:[~2019-06-21 16:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-21 15:42 [PATCH] oe_syslog.py: Handle syslogd/klogd restart race Jon Mason
2019-06-21 16:14 ` Richard Purdie
2019-06-21 16:39 ` Jon Mason
2019-06-21 16:58 ` richard.purdie [this message]
2019-06-21 17:44 ` Jon Mason
2019-06-21 19:26 ` Jon Mason
2019-06-21 21:37 ` richard.purdie
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=1a9c38dca2be655c935d435a6cf6f52ae8342bf6.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=jdmason@kudzu.us \
--cc=openembedded-core@lists.openembedded.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox