diff --git a/src/bin/init/main.c b/src/bin/init/main.c index 2b012ed..870b25a 100644 --- a/src/bin/init/main.c +++ b/src/bin/init/main.c @@ -32,10 +32,15 @@ #include #include #include +#include int main(int argc,char **argv) { int i=0; - + mpiMessage_t myMsg; + + if (mpiCreateMbox("init") != 0x0) { + printf("Error: Error Creating Mail Box\n"); + } /* Test to see if we were started by the system if not exit */ if (getpid() != 1) { @@ -50,7 +55,7 @@ } /* Start the SDE(SCreen Drawing Engine) */ - startSDE(); + //startSDE(); printf("Initializing System.\n"); startup: @@ -62,8 +67,13 @@ exit(0); } else { - while (pidStatus(i) > 0x0) + while (pidStatus(i) > 0x0) { + if (mpiFetchMessage("init",&myMsg) == 0x0) { + printf("MailBox: init Received Message %i:%s\n",myMsg.type,myMsg.data); + //mpiPostMessage(myMsg.data,2222,"init"); + } sched_yield(); + } goto startup; } return(0); @@ -71,6 +81,9 @@ /*** $Log$ + Revision 1.4 2004/05/23 23:40:37 reddawg + Cleanup + Revision 1.3 2004/05/21 21:15:56 reddawg Cleaned up initialized program diff --git a/src/bin/login/main.c b/src/bin/login/main.c index ca9ff6a..1724219 100644 --- a/src/bin/login/main.c +++ b/src/bin/login/main.c @@ -110,8 +110,9 @@ exit(1); } else { - while (pidStatus(shellPid) > 0) + while (pidStatus(shellPid) > 0) { sched_yield(); + } goto login; } }