From: Ian Campbell Subject: Re: [PATCH 7/7] libxl: fork: Provide LIBXL_HAVE_SIGCHLD_SELECTIVE_REAP Date: Fri, 17 Jan 2014 11:27:52 +0000 Message-ID: <1389958072.6697.78.camel@kazak.uk.xensource.com> References: <1389892942-8452-1-git-send-email-ian.jackson@eu.citrix.com> <1389892942-8452-8-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1389892942-8452-8-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: Jim Fehlig , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Thu, 2014-01-16 at 17:22 +0000, Ian Jackson wrote: > This is the feature test macro for libxl_childproc_sigchld_occurred > and libxl_sigchld_owner_libxl_always_selective_reap. > > It is split out into this separate patch because: a single feature > test is sensible because we do not intend anyone to release or ship > libxl versions with one of these but not the other; but, the two > features are in separate patches for clarity; and, this just makes > reading the actual code easier. > > Signed-off-by: Ian Jackson > Cc: Jim Fehlig Acked-by: Ian Campbell > --- > tools/libxl/libxl.h | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/tools/libxl/libxl.h b/tools/libxl/libxl.h > index 12d6c31..1ac34c3 100644 > --- a/tools/libxl/libxl.h > +++ b/tools/libxl/libxl.h > @@ -409,6 +409,19 @@ > */ > #define LIBXL_HAVE_DRIVER_DOMAIN_CREATION 1 > > +/* > + * LIBXL_HAVE_SIGCHLD_SELECTIVE_REAP > + * > + * If this is defined: > + * > + * Firstly, the enum libxl_sigchld_owner (in libxl_event.h) has the > + * value libxl_sigchld_owner_libxl_always_selective_reap which may be > + * passed to libxl_childproc_setmode in hooks->chldmode. > + * > + * Secondly, the function libxl_childproc_sigchld_occurred exists. > + */ > +#define LIBXL_HAVE_SIGCHLD_OWNER_SELECTIVE_REAP 1 > + > /* Functions annotated with LIBXL_EXTERNAL_CALLERS_ONLY may not be > * called from within libxl itself. Callers outside libxl, who > * do not #include libxl_internal.h, are fine. */