[Service] Terminate node without process.exit() 02/247202/2
authorDongHyun Song <dh81.song@samsung.com>
Sun, 8 Nov 2020 11:12:31 +0000 (20:12 +0900)
committerDongHyun Song <dh81.song@samsung.com>
Sun, 8 Nov 2020 11:56:08 +0000 (20:56 +0900)
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>
wrt_app/common/service_manager.ts

index a6ab24a..757688b 100644 (file)
@@ -34,9 +34,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);
-    }
   });
 }