18 if(dead++ > 0) return;
20 postnote(PNGROUP, getpid(), "exit");
30 switch((hostpid = rfork(RFPROC|RFNAMEG|RFFDG|RFNOTEG))) {
32 fd = open("/dev/cons", OREAD);
36 fd = open("/dev/cons", OWRITE);
41 execl("/bin/rc","rcX",nil);
42 fprint(2,"failed to start up rc\n");
45 fprint(2,"rc startup: fork error\n");
49 return open("/mnt/cons/data", ORDWR);
58 einit(Emouse|Ekeyboard);
61 if( estart(Ehost, outfd, BUFSIZ) != Ehost) {
62 exits("event init error");
69 postnote(PNGROUP, hostpid,"interrupt");