From: Ian Campbell Subject: Re: [PATCH 2/3] libxl: event system: Make libxl_sigchld_owner_libxl_always work Date: Wed, 6 Nov 2013 10:34:05 +0000 Message-ID: <1383734045.26213.53.camel@kazak.uk.xensource.com> References: <21113.5942.487235.634777@mariner.uk.xensource.com> <1383679153-3137-1-git-send-email-ian.jackson@eu.citrix.com> <1383679153-3137-3-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: <1383679153-3137-3-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 , Bamvor Jian Zhang , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, 2013-11-05 at 19:19 +0000, Ian Jackson wrote: > Previously, libxl_sigchld_owner_libxl_always was mishandled. It would > result in libxl paying no attention to the sigchld self pipe. > > Fix this by fixing chldmode_ours so that it returns true iff we are > supposed to be handling SIGCHLD. > > Additionally, we arrange to use chldmode_ours everywhere where we are > installing/removing signal handlers and/or deciding whether to check > the self pipe, etc. This means it needs a new "creating" flag > argument for the benefit of libxl__ev_child_fork, which needs to > install the signal handler in libxl_sigchld_owner_libxl even if there > are not currently any children. > > ctx->childproc_hooks->chldowner is now interpreted only by > chldmode_ours. > > Reported-by: Bamvor Jian Zhang > Signed-off-by: Ian Jackson > Cc: Bamvor Jian Zhang Acked-by: Ian Campbell