From: Ian Campbell <ian.campbell@citrix.com>
To: Wei Liu <wei.liu2@citrix.com>,
Xen-devel <xen-devel@lists.xenproject.org>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>
Subject: Re: [PATCH for-4.6 v2 1/4] cxenstored: fix systemd socket activation
Date: Tue, 11 Aug 2015 13:46:25 +0100 [thread overview]
Message-ID: <1439297185.9747.237.camel@citrix.com> (raw)
In-Reply-To: <1439193619-28833-2-git-send-email-wei.liu2@citrix.com>
On Mon, 2015-08-10 at 09:00 +0100, Wei Liu wrote:
> There were two problems with original code:
>
> 1. sd_booted() was used to determined if the process was started by
> systemd, which was wrong.
> 2. Exit with error if pidfile was specified, which was too harsh.
>
> These two combined made cxenstored unable to start by hand if it ran
> on a system which had systemd.
>
> Fix issues with following changes:
>
> 1. Use sd_listen_fds to determine if the process is started by systemd.
> 2. Don't exit if pidfile is specified.
>
> Rename function and restructure code to make things clearer.
>
> A side effect of this patch is that gcc 4.8 with -Wmaybe-uninitialized
> in non-debug build spits out spurious warning about sock and ro_sock
> might be uninitialized. Since CentOS 7 ships gcc 4.8, we need to work
> around that by setting sock and ro_sock to NULL at the beginning of
> main.
>
> Signed-off-by: Wei Liu <wei.liu2@citrix.com>
> Tested-by: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
next prev parent reply other threads:[~2015-08-11 12:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-10 8:00 [PATCH for-4.6 v2 0/4] Patches for c/oxenstored Wei Liu
2015-08-10 8:00 ` [PATCH for-4.6 v2 1/4] cxenstored: fix systemd socket activation Wei Liu
2015-08-11 12:46 ` Ian Campbell [this message]
2015-08-10 8:00 ` [PATCH for-4.6 v2 2/4] cxenstored: document a bunch of short options in help string Wei Liu
2015-08-10 8:00 ` [PATCH for-4.6 v2 3/4] oxenstored: fix systemd socket activation Wei Liu
2015-08-10 8:00 ` [PATCH for-4.6 v2 4/4] oxenstored: move sd_notify_ready out of main loop Wei Liu
2015-08-10 8:04 ` Andrew Cooper
2015-08-10 8:06 ` Wei Liu
2015-08-13 10:31 ` [PATCH for-4.6 v2 0/4] Patches for c/oxenstored Ian Campbell
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=1439297185.9747.237.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.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 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.