mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
proc: Read exit code from /proc/pid/stat
Requires patch #14 (for kernel). Also check for number of entries read be at least required, not exactly equal for forward compatibility. Signed-off-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
committed by
Cyrill Gorcunov
parent
dd495ba18a
commit
21bbfee919
@@ -52,6 +52,7 @@ struct proc_pid_stat {
|
||||
unsigned long start_data;
|
||||
unsigned long end_data;
|
||||
unsigned long start_brk;
|
||||
int exit_code;
|
||||
};
|
||||
|
||||
extern int parse_pid_stat(pid_t pid, int pid_dir, struct proc_pid_stat *s);
|
||||
|
Reference in New Issue
Block a user