diff options
author | \"Ken'ichi Ohmichi\ <oomichi@mxs.nes.nec.co.jp> | 2009-05-08 01:46:02 +0530 |
---|---|---|
committer | Balbir Singh <balbir@linux.vnet.ibm.com> | 2009-05-08 01:46:02 +0530 |
commit | 8953fc07c0498d1ddd9a04dc549ffb85862f4c5f (patch) | |
tree | 173db54f5d559bccf423b79c9464bd4d29ede084 /src/daemon/Makefile.am | |
parent | 485fe65a0daa23899d1e4c02620036a265560a57 (diff) | |
download | libcg-8953fc07c0498d1ddd9a04dc549ffb85862f4c5f.tar.gz libcg-8953fc07c0498d1ddd9a04dc549ffb85862f4c5f.tar.xz libcg-8953fc07c0498d1ddd9a04dc549ffb85862f4c5f.zip |
Changelog v2:
* Use clock_gettime(2) for getting timestamp since a system boot.
* Change parent_info's memory to dynamic allocation.
This patch is for changing the cgroup of a forked process while parent
changing.
This patch adds the following sequence:
1. Store both the timestamp and the process-id when changing the cgroup.
2. If receiving a PROC_EVENT_FORK packet, check its parent-pid and its
timestamp.
3. If its parent-pid and the stored process-id are same and its timestamp
is older than the stored timestamp, change the cgroup of forked process.
Thanks
Ken'ichi Ohmichi
Signed-off-by: Ken'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>
Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Diffstat (limited to 'src/daemon/Makefile.am')
-rw-r--r-- | src/daemon/Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am index 17d31d9..f0c9b92 100644 --- a/src/daemon/Makefile.am +++ b/src/daemon/Makefile.am @@ -2,5 +2,5 @@ INCLUDES = -I $(top_srcdir)/include sbin_PROGRAMS = cgrulesengd cgrulesengd_SOURCES = cgrulesengd.c cgrulesengd.h -cgrulesengd_LDADD = $(top_srcdir)/src/.libs/libcgroup.la +cgrulesengd_LDADD = $(top_srcdir)/src/.libs/libcgroup.la -lrt cgrulesengd_LDFLAGS = -L$(top_srcdir)/src/.libs |