[Service] Terminate node without process.exit() 28/247628/1
authorDongHyun Song <dh81.song@samsung.com>
Sun, 8 Nov 2020 11:12:31 +0000 (20:12 +0900)
committerDongHyun Song <dh81.song@samsung.com>
Fri, 13 Nov 2020 02:11:29 +0000 (02:11 +0000)
Node process will be terminated by uv handleres release instead of
process.exit().

Related patch:
  https://review.tizen.org/gerrit/247203/

Change-Id: I24824ed1cc7ed9c055502d29a9008d27fedd3031
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
(cherry picked from commit 9153d03dc5406e4e7017edcacdd81fa176d6490d)

wrt_app/common/service_manager.ts

index b48f2d4..8fcb2e2 100644 (file)
@@ -29,9 +29,6 @@ function createWorker(id: string, startService: string, filename: string) {
     delete workers[id];
     let runningServices = Object.keys(workers).length;
     console.log(`exit code(${code}), remain services(${runningServices})`);
-    if (runningServices === 0 && isServiceApplication()) {
-      setTimeout(() => process.exit(), 500);
-    }
   });
 }