[CRIU] [PATCH] Add 50K'th line in the source code

Andrew Vagin avagin at parallels.com
Mon Jul 7 01:12:48 PDT 2014


On Sun, Jul 06, 2014 at 11:47:42PM +0400, Pavel Emelyanov wrote:
> As per current top commit (9c0c23c0) the amount of code in CRIU
> _without_ the contents of the test/ directory is
> 
> $ git grep -l . | egrep -v ^test | xargs wc -l
> ...
> 49999
> 
> This is the only chance for such a great one-liner :)
> 
> The place in the code is not completely random -- it's one of the
> few occurrences of two consecutive empty lines in a .c file.
> 
> Signed-off-by: Pavel Emelyanov <xemul at parallels.como>

Tested-by: Andrew Vagin <avagin at parallels.com>
> 
> ---
> 
> diff --git a/parasite-syscall.c b/parasite-syscall.c
> index f807cf3..f26503a 100644
> --- a/parasite-syscall.c
> +++ b/parasite-syscall.c
> @@ -799,6 +799,7 @@ int parasite_get_proc_fd_seized(struct parasite_ctl *ctl)
>  	return fd;
>  }
>  
> +/* This is officially the 50000'th line in the CRIU source code */
>  
>  static bool task_in_parasite(struct parasite_ctl *ctl, user_regs_struct_t *regs)
>  {
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu


More information about the CRIU mailing list