Add status to TA exit log 92/185692/3
authorIgor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Wed, 20 Jun 2018 10:47:00 +0000 (12:47 +0200)
committerIgor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Tue, 21 Aug 2018 10:37:29 +0000 (12:37 +0200)
Change-Id: I67dad3dec4aed2ab6038c4e85cab891216df706c
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
simulatordaemon/src/TAFactory.cpp

index f5629ee..8111728 100644 (file)
@@ -285,7 +285,7 @@ void* TAFactory::waitForChild(void *pid) {
 
        // Wait for PID to exit
        waitpid(PID, &childStatus, 0);
-       LOGD(MODULE_SIM_DAEMON, "PID %d exited", PID);
+       LOGD(MODULE_SIM_DAEMON, "PID %d exited with code %d", PID, WEXITSTATUS(childStatus));
        if (instance != NULL) {
                // Clean (handle immature termination of) TA
                instance->cleanupTAInstance(PID);