From: Vitaliy Cherepanov Date: Tue, 17 Jun 2014 14:38:03 +0000 (+0400) Subject: [FIX] unload modules on EFL instrumentation X-Git-Tag: Tizen_SDK_2.3~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80f55ef273f58e05ffa1e5d7862ebb079d6aeb85;p=platform%2Fcore%2Fsystem%2Fswap-manager.git [FIX] unload modules on EFL instrumentation add O_CLOEXEC param on open tasks dev (fopen(..., "e")) Change-Id: I113e8a8cde4f9ba2d32e279aeddc3d97d84c60e8 Signed-off-by: Vitaliy Cherepanov --- diff --git a/daemon/buffer.c b/daemon/buffer.c index ba2615e..c2fc635 100644 --- a/daemon/buffer.c +++ b/daemon/buffer.c @@ -43,7 +43,7 @@ static int open_tasks_dev(void) { if (manager.fd.inst_tasks == NULL) { - manager.fd.inst_tasks = fopen(INST_PID_FILENAME, "r"); + manager.fd.inst_tasks = fopen(INST_PID_FILENAME, "re"); if (manager.fd.inst_tasks == NULL) { LOGE("Cannot open tasks dev: %s\n", strerror(errno)); return 1;