projects
/
platform
/
core
/
system
/
swap-manager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30e5c67
)
[FIX] screenshot dir creation warning
author
Nikita Kalyazin
<n.kalyazin@samsung.com>
Thu, 26 Sep 2013 15:40:49 +0000
(19:40 +0400)
committer
Nikita Kalyazin
<n.kalyazin@samsung.com>
Thu, 26 Sep 2013 15:40:49 +0000
(19:40 +0400)
Change-Id: I801a8de72727b963bedadf77be766f6401b82529
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
daemon/daemon.c
patch
|
blob
|
history
diff --git
a/daemon/daemon.c
b/daemon/daemon.c
index a9df0878f51414e19e868ac7ae1e5d62dcd4d01b..888fad6b355b1457738c8190a36069d374b2e4ec 100644
(file)
--- a/
daemon/daemon.c
+++ b/
daemon/daemon.c
@@
-410,9
+410,7
@@
int start_profiling()
// remove previous screen capture files
remove_indir(SCREENSHOT_DIR);
- if (unlink(SCREENSHOT_DIR) == -1)
- LOGW("Cannot remove screenshot dir: %s\n", strerror(errno));
- if (mkdir(SCREENSHOT_DIR, 0777) == -1)
+ if (mkdir(SCREENSHOT_DIR, 0777) == -1 && errno != EEXIST)
LOGW("Failed to create directory for screenshot : %s\n",
strerror(errno));