cwfs: cfs needs to run after con_session(), so revert previous change and just run consserve() before starting the srv procs

front
cinap_lenrek 2011-09-07 08:10:35 +02:00
parent 89a36a09f2
commit 0a229586f2
3 changed files with 12 additions and 12 deletions

View File

@ -6,6 +6,7 @@ static char statsdef[20]; /* default stats list */
static int whoflag;
static void consserve1(void *);
static void installcmds(void);
void
consserve(void)
@ -13,7 +14,12 @@ consserve(void)
int i;
strncpy(cons.chan->whochan, "console", sizeof(cons.chan->whochan));
installcmds();
con_session();
cmd_exec("cfs");
cmd_exec("users");
cmd_exec("version");
for(i = 0; command[i].arg0; i++)
if(strcmp("cwcmd", command[i].arg0) == 0){
cmd_exec("cwcmd touchsb");
@ -744,7 +750,7 @@ cmd_chatty(int argc, char *argv[])
chatty = atoi(argv[1]);
}
void
static void
installcmds(void)
{
cmd_install("allow", "-- disable permission checking", cmd_allow);

View File

@ -373,16 +373,16 @@ main(int argc, char **argv)
sysinit();
srvinit();
installcmds();
cmd_exec("cfs");
cmd_exec("users");
cmd_exec("version");
/*
* post filedescriptors to /srv
*/
postservice();
/*
* processes to read the console
*/
consserve();
/*
* Ethernet i/o processes
*/
@ -409,11 +409,6 @@ main(int argc, char **argv)
*/
newproc(synccopy, 0, "scp");
/*
* processes to read the console
*/
consserve();
/* success */
exits(nil);
}

View File

@ -29,7 +29,6 @@ int cksum(void*, int, int);
int cksum0(int, int);
void cyclstart(void);
void dotrace(int);
void installcmds(void);
void consserve(void);
int conslock(void);
int con_attach(int, char*, char*);