projects
/
platform
/
framework
/
web
/
wrtjs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a609c16
)
[WRT Service][RAM] Terminate client process after finishing loading service app
89/212089/4
author
Youngsoo Choi
<kenshin.choi@samsung.com>
Wed, 14 Aug 2019 06:49:58 +0000
(23:49 -0700)
committer
SangYong Park
<sy302.park@samsung.com>
Fri, 23 Aug 2019 04:35:03 +0000
(
04:35
+0000)
This terminiates client process after finishing loading service app
to reduce memory usage.
Change-Id: I4408fb522aafe30c7151bf6cea02ab0309df5c4d
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
wrt_app/service/main.js
patch
|
blob
|
history
diff --git
a/wrt_app/service/main.js
b/wrt_app/service/main.js
index
733f8df
..
6a99f55
100755
(executable)
--- a/
wrt_app/service/main.js
+++ b/
wrt_app/service/main.js
@@
-24,6
+24,9
@@
wrt.on('start-service', (event, appID) => {
let sandbox = { console: console };
let options = { filename: appID };
vm.runInNewContext(wrt.readService(appID), sandbox, options);
+ if (!wrt.terminateClient(app_id)) {
+ console.log('Failed to terminate client process');
+ }
})
process.on('exit', (code) => {