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 /INSTALL | |
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 'INSTALL')
0 files changed, 0 insertions, 0 deletions