[CRIU] [PATCH 1/3] logfd: Distinguish functions which do setup logdf

Cyrill Gorcunov gorcunov at openvz.org
Wed Feb 29 01:33:03 EST 2012


On Wed, Feb 29, 2012 at 02:36:02AM +0400, Kir Kolyshkin wrote:
...
> >
> > -static int set_logfd(void)
> > +static int obtain_logfd(void)
> 
> Why not get_logfd? Get and set make a nice pair.
> 

Because it's parasite specific code. Actually I think
better would be to rename it to parasite_receive_logfd
since set_logfd is too common and do not says what really
function does -- it obtains already opened file descriptor
from crtools.

	Cyrill


More information about the CRIU mailing list