Skip to content
Commit e76749b7 authored by Ruslan Kuprieiev's avatar Ruslan Kuprieiev Committed by Pavel Emelyanov
Browse files

cr-restore: set cr_error to EEXIST if such pid already exists, v3



This is a very common error when using criu.

The problem here is that we need to somehow transfer cr_errno
from one process to another. I suggest using pipe to give
one end to children and read cr_errno on other after restore
is finished.

v2, Pavel suggested putting errno into shared task_entries.
v3. and he also suggested using cmpxchg

Signed-off-by: default avatarRuslan Kuprieiev <kupruser@gmail.com>
Signed-off-by: default avatarPavel Emelyanov <xemul@parallels.com>
parent b09a88b5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment