WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH 17 of 24] libxl: add libxl__spawn_confirm_offspri

Olaf Hering writes ("Re: [Xen-devel] [PATCH 17 of 24] libxl: add 
libxl__spawn_confirm_offspring_startup"):
> On Tue, Oct 25, Ian Jackson wrote:
> > Olaf Hering writes ("[Xen-devel] [PATCH 17 of 24] libxl: add 
> > libxl__spawn_confirm_offspring_startup"):
> > > libxl: add libxl__spawn_confirm_offspring_startup
> > > 
> > > libxl__spawn_confirm_offspring_startup() is a generic version of
> > > libxl__confirm_device_model_startup().
> > 
> > Thanks but I think it would be better to refactor this to avoid the
> > duplication of this code.
> 
> The new function is used in patch #18 of this series.
> Or do you have some other changes in mind?

I mean that you should arrange to replace
libxl__confirm_device_model_startup with your new function
libxl__spawn_confirm_offspring_startup.

As it is you have made a copy of libxl__confirm_device_model_startup
and lightly edited it.  This is a cardinal sin in programming, known
as "clone and hack".

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel