From: Ian Campbell Subject: Re: [PATCH 3/7] libxl: fork: Clarify docs for libxl_sigchld_owner Date: Fri, 17 Jan 2014 11:12:40 +0000 Message-ID: <1389957160.6697.71.camel@kazak.uk.xensource.com> References: <1389892942-8452-1-git-send-email-ian.jackson@eu.citrix.com> <1389892942-8452-4-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-4-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: > Clarify that libxl_sigchld_owner_libxl causes libxl to reap all the > process's children, and clarify the wording of the description of > libxl_sigchld_owner_libxl_always. > > Signed-off-by: Ian Jackson > Cc: Jim Fehlig > Cc: Ian Campbell > --- > tools/libxl/libxl_event.h | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/tools/libxl/libxl_event.h b/tools/libxl/libxl_event.h > index 6261f99..4221d5a 100644 > --- a/tools/libxl/libxl_event.h > +++ b/tools/libxl/libxl_event.h > @@ -467,7 +467,8 @@ void libxl_osevent_occurred_timeout(libxl_ctx *ctx, void *for_libxl) > > > typedef enum { > - /* libxl owns SIGCHLD whenever it has a child. */ > + /* libxl owns SIGCHLD whenever it has a child, and reaps > + * all children. */ "all children, including those which were not spawned by libxl" might be extra clear. It might also be worth saying explicitly "When libxl has no children it does not own SIGCHLD and will not reap anything". I know it's implied by the existing text but it is a bit of a subtle point. With or without those mods: Acked-by: Ian Campbell > libxl_sigchld_owner_libxl, > > /* Application promises to call libxl_childproc_exited but NOT > @@ -476,7 +477,7 @@ typedef enum { > libxl_sigchld_owner_mainloop, > > /* libxl owns SIGCHLD all the time, and the application is > - * relying on libxl's event loop for reaping its own children. */ > + * relying on libxl's event loop for reaping its children too. */ > libxl_sigchld_owner_libxl_always, > } libxl_sigchld_owner; >