diff --git a/src/bin/init/main.c b/src/bin/init/main.c index 870b25a..36828bf 100644 --- a/src/bin/init/main.c +++ b/src/bin/init/main.c @@ -38,8 +38,10 @@ int i=0; mpiMessage_t myMsg; + /* Create a mailbox for this task */ if (mpiCreateMbox("init") != 0x0) { printf("Error: Error Creating Mail Box\n"); + exit(-1); } /* Test to see if we were started by the system if not exit */ @@ -68,9 +70,10 @@ } else { while (pidStatus(i) > 0x0) { + fetchAgain: if (mpiFetchMessage("init",&myMsg) == 0x0) { printf("MailBox: init Received Message %i:%s\n",myMsg.type,myMsg.data); - //mpiPostMessage(myMsg.data,2222,"init"); + goto fetchAgain; } sched_yield(); } @@ -81,6 +84,9 @@ /*** $Log$ + Revision 1.5 2004/05/25 15:43:44 reddawg + Tests for MPI + Revision 1.4 2004/05/23 23:40:37 reddawg Cleanup @@ -90,6 +96,5 @@ Revision 1.2 2004/05/21 15:43:58 reddawg Fixed the the bootup ordering in userland initialization - END ***/