Commit 27477e33 authored by Pavel Emelyanov's avatar Pavel Emelyanov

image.h: Move TASK_FOO states into pid.h

Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 97b716a8
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include "file-ids.h" #include "file-ids.h"
#include "mount.h" #include "mount.h"
#include "files.h" #include "files.h"
#include "image.h"
#include "list.h" #include "list.h"
#include "rst-malloc.h" #include "rst-malloc.h"
#include "fs-magic.h" #include "fs-magic.h"
......
...@@ -94,13 +94,6 @@ ...@@ -94,13 +94,6 @@
#define TASK_COMM_LEN 16 #define TASK_COMM_LEN 16
#define TASK_UNDEF 0x0
#define TASK_ALIVE 0x1
#define TASK_DEAD 0x2
#define TASK_STOPPED 0x3
#define TASK_HELPER 0x4
#define TASK_THREAD 0x5
#define CR_PARENT_LINK "parent" #define CR_PARENT_LINK "parent"
extern bool fdinfo_per_id; extern bool fdinfo_per_id;
......
...@@ -24,6 +24,13 @@ struct pid { ...@@ -24,6 +24,13 @@ struct pid {
struct rb_node node; struct rb_node node;
}; };
#define TASK_UNDEF 0x0
#define TASK_ALIVE 0x1
#define TASK_DEAD 0x2
#define TASK_STOPPED 0x3
#define TASK_HELPER 0x4
#define TASK_THREAD 0x5
/* /*
* When we have to restore a shared resource, we mush select which * When we have to restore a shared resource, we mush select which
* task should do it, and make other(s) wait for it. In order to * task should do it, and make other(s) wait for it. In order to
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include "asm/types.h" #include "asm/types.h"
#include "util.h" #include "util.h"
#include "ptrace.h" #include "ptrace.h"
#include "pid.h"
#include "proc_parse.h" #include "proc_parse.h"
#include "crtools.h" #include "crtools.h"
#include "seccomp.h" #include "seccomp.h"
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include "cr_options.h" #include "cr_options.h"
#include "imgset.h" #include "imgset.h"
#include "servicefd.h" #include "servicefd.h"
#include "image.h"
#include "rst-malloc.h" #include "rst-malloc.h"
#include "log.h" #include "log.h"
#include "list.h" #include "list.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment