[memprof: 32/76] mi-perfctr.c: Remove the O_CREAT (from the openSUSE buildservice)
- From: Holger Hans Peter Freyther <hfreyther src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [memprof: 32/76] mi-perfctr.c: Remove the O_CREAT (from the openSUSE buildservice)
- Date: Sun, 13 Jun 2010 03:40:55 +0000 (UTC)
commit ccb4831354ee317fcc0965c3aadbb1f8bb42b522
Author: Holger Hans Peter Freyther <zecke selfish org>
Date: Mon Jun 8 09:10:51 2009 +0200
mi-perfctr.c: Remove the O_CREAT (from the openSUSE buildservice)
Remove the O_CREAT as it doesn't make sense to ask the kernel to
create a proc file...
lib/mi-perfctr.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/lib/mi-perfctr.c b/lib/mi-perfctr.c
index a48eff3..134f9e6 100644
--- a/lib/mi-perfctr.c
+++ b/lib/mi-perfctr.c
@@ -97,8 +97,7 @@ mi_perfctr_start (int interval)
MI_DEBUG (("Turning on performance monitoring timer support\n"));
- if ((perfctr_fd = open ("/proc/self/perfctr", O_RDONLY | O_CREAT,
- S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)) < 0) {
+ if ((perfctr_fd = open ("/proc/self/perfctr", O_RDONLY)) < 0) {
mi_perror ("Error opening /proc/self/perfctr");
goto bail;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]