[Devel] [PATCH 04/11] cr_tests: Remove redundant move_to_cgroup() calls.

Matt Helsley matthltc at us.ibm.com
Wed Aug 19 21:58:07 PDT 2009


Signed-off-by: Matt Helsley <matthltc at us.ibm.com>
Cc: containers at lists.linux-foundation.org
---
 futex/pi.c     |    4 ----
 futex/plain.c  |    4 ----
 futex/robust.c |    4 ----
 3 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/futex/pi.c b/futex/pi.c
index e06ddfb..595b9e7 100644
--- a/futex/pi.c
+++ b/futex/pi.c
@@ -558,10 +558,6 @@ int main(int argc, char **argv)
 	pid_t finished;
 	int i = 0, status = 0, excode;
 
-	if (!move_to_cgroup("freezer", "1", getpid())) {
-		printf("Failed to move myself to cgroup /1\n");
-		exit(1);
-	}
 	/* FIXME eventually stdio streams should be harmless */
 	close(0);
 	logfp = fopen(LOG_FILE, "w");
diff --git a/futex/plain.c b/futex/plain.c
index 5fef84d..bc7f50c 100644
--- a/futex/plain.c
+++ b/futex/plain.c
@@ -112,10 +112,6 @@ int main(int argc, char **argv)
 	pid_t kids[N];
 	int i, num_killed = 0;
 
-	if (!move_to_cgroup("freezer", "1", getpid())) {
-		printf("Failed to move myself to cgroup /1\n");
-		exit(1);
-	}
 	/* FIXME eventually stdio streams should be harmless */
 	close(0);
 	logfp = fopen(LOG_FILE, "w");
diff --git a/futex/robust.c b/futex/robust.c
index f63b7d1..e703147 100644
--- a/futex/robust.c
+++ b/futex/robust.c
@@ -309,10 +309,6 @@ int main(int argc, char **argv)
 	pid_t kids[N];
 	int i, excode = EXIT_FAILURE;
 
-	if (!move_to_cgroup("freezer", "1", getpid())) {
-		printf("Failed to move myself to cgroup /1\n");
-		exit(1);
-	}
 	/* FIXME eventually stdio streams should be harmless */
 	close(0);
 	logfp = fopen(LOG_FILE, "w");
-- 
1.5.6.3


_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list