]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blobdiff - linux/src/tests/MessageQApp.c
Linux: Moved MultiProc config into the platform specific LAD daemon.
[ipc/ipcdev.git] / linux / src / tests / MessageQApp.c
index 320ef23e99695a1a71635aa577cdd7b5b7186f97..6490e267d9f9e5d702e5d3b52d8f462b539d498d 100644 (file)
@@ -195,14 +195,16 @@ int main (int argc, char ** argv)
                    NUM_LOOPS_DFLT, PROC_ID_DFLT);
            exit(0);
     }
+
+    status = Ipc_start();
+
     if (procId >= MultiProc_getNumProcessors()) {
         printf("ProcId must be less than %d\n", MultiProc_getNumProcessors());
+        Ipc_stop();
         exit(0);
     }
     printf("Using numLoops: %d; procId : %d\n", numLoops, procId);
 
-    status = Ipc_start();
-
     if (status >= 0) {
         MessageQApp_execute(numLoops, procId);
         Ipc_stop();