Modify disposal loader handler 67/298867/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 14 Sep 2023 10:15:00 +0000 (19:15 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 14 Sep 2023 10:15:00 +0000 (19:15 +0900)
The result should be delivered to the caller before sending SIGKILL signal.

Change-Id: I829d244b16aa4472ea6935349c5bf0e1353fc553
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/launchpad-process-pool/launchpad.cc

index 549314e..90663d6 100644 (file)
@@ -625,10 +625,10 @@ void Launchpad::HandleDisposeLoaderRequest(std::shared_ptr<Request> request) {
     return;
   }
 
+  request->SendResult(0);
   loader_context->Dispose();
   _W("[PAD_CMD_DISPOSE_LOADER] loader_name: %s, pid: %d",
      loader_context->GetLoaderName().c_str(), caller_pid);
-  request->SendResult(0);
 }
 
 void Launchpad::OnIOEventReceived(int fd, int condition) {