From: Ian Campbell Subject: Re: [PATCH 24/25] libxl: child processes cleanups Date: Thu, 26 Apr 2012 10:03:39 +0100 Message-ID: <1335431019.28015.65.camel@zakaz.uk.xensource.com> References: <1335369353-13012-1-git-send-email-ian.jackson@eu.citrix.com> <1335369353-13012-25-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: <1335369353-13012-25-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: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Wed, 2012-04-25 at 16:55 +0100, Ian Jackson wrote: > Abolish libxl_fork. Its only callers were in xl. Its functionality > is now moved elsewhere, as follows: > > * The "logging version of fork", which is what it was billed as, is now > xl_fork, which also dies on failure. > > * Closing the xenstore handle in the child is now done in > libxl__ev_child_fork, which is the only remaining place where fork > is called in libxl. > > * We provide a new function libxl__ev_child_xenstore_reopen for > in-libxl children to make the ctx useable for xenstore again. > > * Consequently libxl__spawn_record_pid now no longer needs to mess > about with its own xenstore handle. As a bonus it can now just use > libxl__xs_write. > > Also, since we have now converted all the forkers in libxl, we can > always honour the fork_replacement childproc hook - so do so. > > Signed-off-by: Ian Jackson Acked-by: Ian Campbell