From e9e32ef3a8a3a2ef1307ff6da5f2d3d5da97fcef Mon Sep 17 00:00:00 2001 From: Inhwan Lee Date: Wed, 16 Mar 2016 14:45:54 +0900 Subject: [PATCH] Request sync after system call for change privilege of thread --- runtime/browser/prelauncher.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/runtime/browser/prelauncher.cc b/runtime/browser/prelauncher.cc index a247cdcd9..e7a2f4606 100755 --- a/runtime/browser/prelauncher.cc +++ b/runtime/browser/prelauncher.cc @@ -70,13 +70,8 @@ void ChangePrivilegeForThreads(const std::string& appid) { if (tid == current_tid) continue; syscall(__NR_tkill, tid, SIGUSR1); - - // It is workaround code - // Delete Me, If does not crashed on Note4 - // I don't know why crashed in Kernel with below log - // unhandled level 2 translation fault (11) at 0x00000080, esr 0x92000006 - LOGGER(DEBUG) << "Send signal " << tid; } + sync(); closedir(dir); } signal(SIGUSR1, oldhandler); -- 2.34.1