2
0
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:
Pavel Emelyanov
2012-01-22 20:22:40 +04:00
committed by Cyrill Gorcunov
parent dd495ba18a
commit 21bbfee919
2 changed files with 5 additions and 3 deletions

View File

@@ -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);