mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 00:58:31 +00:00
locks: Dump virtual pid of a lock owner
If we're dumping namespaced tasks, the fl_owner value we see are the real pids of tasks, while we need virtual ones. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
536076bd28
commit
a40ab4e372
1 changed files with 1 additions and 1 deletions
|
|
@ -156,7 +156,7 @@ int dump_task_file_locks(struct parasite_ctl *ctl,
|
|||
fl->start, fl->end);
|
||||
|
||||
file_lock_entry__init(&fle);
|
||||
fle.pid = fl->fl_owner;
|
||||
fle.pid = ctl->pid.virt;
|
||||
|
||||
ret = fill_flock_entry(&fle, fl->fl_flag, fl->fl_type,
|
||||
fl->fl_option);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue