projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91e4208
)
To reduce launching time, use syncfs instead of sync
author
JongHeon Choi
<j-h.choi@samsung.com>
Wed, 22 Jun 2016 04:36:21 +0000
(13:36 +0900)
committer
JongHeon Choi
<j-h.choi@samsung.com>
Wed, 22 Jun 2016 04:36:28 +0000
(13:36 +0900)
runtime/browser/prelauncher.cc
patch
|
blob
|
history
diff --git
a/runtime/browser/prelauncher.cc
b/runtime/browser/prelauncher.cc
index
e7a2f46
..
2f64fbb
100755
(executable)
--- a/
runtime/browser/prelauncher.cc
+++ b/
runtime/browser/prelauncher.cc
@@
-43,8
+43,10
@@
int SmackLabelSetForTask(const std::string& label) {
snprintf(path, sizeof(path), "/proc/%d/attr/current", tid);
fd = open(path, O_WRONLY);
if (fd < 0)
-
return -1;
+ return -1;
ret = write(fd, label.c_str(), label.length());
+ if (syncfs(fd) < 0)
+ return -1;
close(fd);
return (ret < 0) ? -1 : 0;
}
@@
-71,7
+73,6
@@
void ChangePrivilegeForThreads(const std::string& appid) {
continue;
syscall(__NR_tkill, tid, SIGUSR1);
}
- sync();
closedir(dir);
}
signal(SIGUSR1, oldhandler);