mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 17:14:28 +00:00
pstree and parasite are two different subsystems, so it "should" not depend on each other. parasite-syscall uses the pid struct, so this patch moves it in a separate header. Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
20 lines
451 B
C
20 lines
451 B
C
#ifndef __CR_PID_H__
|
|
#define __CR_PID_H__
|
|
|
|
struct pid {
|
|
/*
|
|
* The @real pid is used to fetch tasks during dumping stage,
|
|
* This is a global pid seen from the context where the dumping
|
|
* is running.
|
|
*/
|
|
pid_t real;
|
|
|
|
/*
|
|
* The @virt pid is one which used in the image itself and keeps
|
|
* the pid value to be restored. This pid fetched from the
|
|
* dumpee context, because the dumpee might have own pid namespace.
|
|
*/
|
|
pid_t virt;
|
|
};
|
|
|
|
#endif
|