From: Ian Jackson Subject: Re: [PATCH 14/12] libxl: fork: Make SIGCHLD self-pipe nonblocking Date: Tue, 21 Jan 2014 15:48:05 +0000 Message-ID: <21214.38581.47252.874216@mariner.uk.xensource.com> References: <21214.34859.759826.374311@mariner.uk.xensource.com> <1390317088-21308-1-git-send-email-ian.jackson@eu.citrix.com> <1390317088-21308-2-git-send-email-ian.jackson@eu.citrix.com> <1390318375.32519.9.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1390318375.32519.9.camel@kazak.uk.xensource.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 Campbell Cc: Jim Fehlig , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [PATCH 14/12] libxl: fork: Make SIGCHLD self-pipe nonblocking"): > On Tue, 2014-01-21 at 15:11 +0000, Ian Jackson wrote: > > Use the new libxl__pipe_nonblock and _close functions, rather than > > open coding the same logic. Now the pipe is nonblocking, which avoids > > a race which could result in libxl deadlocking in a multithreaded > > program. > > Is any additional error handling required at any of the points where the > pipe is used, EWOULDBLOCK etc. No, they are just the libxl__self_pipe* functions as you have noticed, which are designed to work (only!) with nonblocking fds. > Acked-by: Ian Campbell Thanks, Ian.