[CRIU] [PATCH 3/9] cr-restore: set cr_error to EEXIST if such pid already exists, v3

Pavel Emelyanov xemul at parallels.com
Fri Dec 19 08:01:25 PST 2014


> @@ -855,6 +858,9 @@ static inline int sig_fatal(int sig)
>  struct task_entries *task_entries;
>  static unsigned long task_entries_pos;
>  
> +#define set_task_cr_err(new_err)	atomic_cmpxchg(&task_entries->cr_err, 0, new_err)
> +#define get_task_cr_err()		atomic_read(&task_entries->cr_err)
> +

Can you prepare an incremental patch moving this code into errno header?

>  static int restore_one_zombie(int pid, CoreEntry *core)
>  {
>  	int exit_code = core->tc->exit_code;



More information about the CRIU mailing list