summaryrefslogtreecommitdiffstats
path: root/libcutils
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-05-08 14:58:30 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-05-08 14:58:30 -0700
commit4df54bc4a85eacfff9c81dc0a7ebf3fd88a99982 (patch)
treebc39eabb5f90e73fe70865c31003002e16050fe7 /libcutils
parente1440d81aef58e8b9983ab1f4540dc1fe5e63ab7 (diff)
downloadsystem_core-4df54bc4a85eacfff9c81dc0a7ebf3fd88a99982.zip
system_core-4df54bc4a85eacfff9c81dc0a7ebf3fd88a99982.tar.gz
system_core-4df54bc4a85eacfff9c81dc0a7ebf3fd88a99982.tar.bz2
Revert "Use O_CLOEXEC when opening cgroup fds."
This reverts commit e1440d81aef58e8b9983ab1f4540dc1fe5e63ab7
Diffstat (limited to 'libcutils')
-rw-r--r--libcutils/sched_policy.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libcutils/sched_policy.c b/libcutils/sched_policy.c
index 3fe83b3..20771c0 100644
--- a/libcutils/sched_policy.c
+++ b/libcutils/sched_policy.c
@@ -124,32 +124,32 @@ static void __initialize(void) {
#if CAN_SET_SP_SYSTEM
filename = "/dev/cpuctl/tasks";
- system_cgroup_fd = open(filename, O_WRONLY | O_CLOEXEC);
+ system_cgroup_fd = open(filename, O_WRONLY);
if (system_cgroup_fd < 0) {
SLOGV("open of %s failed: %s\n", filename, strerror(errno));
}
#endif
filename = "/dev/cpuctl/foreground/tasks";
- fg_cgroup_fd = open(filename, O_WRONLY | O_CLOEXEC);
+ fg_cgroup_fd = open(filename, O_WRONLY);
if (fg_cgroup_fd < 0) {
SLOGE("open of %s failed: %s\n", filename, strerror(errno));
}
filename = "/dev/cpuctl/bg_non_interactive/tasks";
- bg_cgroup_fd = open(filename, O_WRONLY | O_CLOEXEC);
+ bg_cgroup_fd = open(filename, O_WRONLY);
if (bg_cgroup_fd < 0) {
SLOGE("open of %s failed: %s\n", filename, strerror(errno));
}
filename = "/dev/cpuctl/audio_app/tasks";
- audio_app_cgroup_fd = open(filename, O_WRONLY | O_CLOEXEC);
+ audio_app_cgroup_fd = open(filename, O_WRONLY);
if (audio_app_cgroup_fd < 0) {
SLOGV("open of %s failed: %s\n", filename, strerror(errno));
}
filename = "/dev/cpuctl/audio_sys/tasks";
- audio_sys_cgroup_fd = open(filename, O_WRONLY | O_CLOEXEC);
+ audio_sys_cgroup_fd = open(filename, O_WRONLY);
if (audio_sys_cgroup_fd < 0) {
SLOGV("open of %s failed: %s\n", filename, strerror(errno));
}