summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKen'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>2009-06-26 14:50:54 +0900
committerDhaval Giani <dhaval@linux.vnet.ibm.com>2009-06-29 16:47:32 +0530
commitafbbee67863b4debf4ec849ff3d6a3f1f21b73ef (patch)
tree63abe776b5ff43301e3db38c4c1a482c100bb541 /include
parent2d10aa26dc974ab2f838bc170a7ff1608f0cf8a6 (diff)
downloadlibcg-afbbee67863b4debf4ec849ff3d6a3f1f21b73ef.tar.gz
libcg-afbbee67863b4debf4ec849ff3d6a3f1f21b73ef.tar.xz
libcg-afbbee67863b4debf4ec849ff3d6a3f1f21b73ef.zip
Add the handler of unchanged process to cgrulesengd daemon.
Hi, Changelog of v6: ================ * No change. Changelog of v5: ================ * No change. Changelog of v4: ================ * Add the comment "FIXME: Change the temporary file to configurable one." * Define the number of allocation. Changelog of v3: ================ * Set the value 0x1 to CGROUP_DAEMON_UNCHANGE_CHILDREN flag. Changelog of v2: ================ * New patch. Description: ============ This patch adds the handler of unchanged process to the cgrulesengd daemon. By this patch, the daemon does not change a process which is executed by 'cgexec' command, because it is possible to notify the unchanged process to the daemon by using "unix domain socket". Thanks Ken'ichi Ohmichi Signed-off-by: Ken'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp> Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/libcgroup.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libcgroup.h b/include/libcgroup.h
index a9799ab..8707412 100644
--- a/include/libcgroup.h
+++ b/include/libcgroup.h
@@ -52,6 +52,10 @@ __BEGIN_DECLS
#define CGRULE_INVALID (-1)
#define CGRULE_WILD (-2)
+/* FIXME: Change the temporary file to configurable one. */
+#define CGRULE_CGRED_TEMP_FILE "/tmp/cgred"
+#define CGRULE_SUCCESS_STORE_PID "SUCCESS_STORE_PID"
+
/* Flags for cgroup_change_cgroup_uid_gid() */
enum cgflags {
CGFLAG_USECACHE = 0x01,
@@ -108,6 +112,10 @@ enum cgroup_file_type {
CGROUP_FILE_TYPE_OTHER, /* Directory */
};
+enum cgroup_daemon_type {
+ CGROUP_DAEMON_UNCHANGE_CHILDREN = 0x1,
+};
+
struct cgroup_file_info {
enum cgroup_file_type type;
const char *path;