diff options
author | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-09-07 04:27:00 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-09-07 04:27:00 +0200 |
commit | 89a36a09f2bbc83e2b0e9feb870c85d3fc75e485 (patch) | |
tree | 75fd31dd82f94aae382e9977dbdbab285844fcf8 /sys/src/cmd/cwfs/con.c | |
parent | bae8b3192d1a8c55ffecfa4c17fd326c9ceed299 (diff) |
cwfs: fix race between cmd_exec("users") and serve processes, cleanup portfns.h
Diffstat (limited to 'sys/src/cmd/cwfs/con.c')
-rw-r--r-- | sys/src/cmd/cwfs/con.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/src/cmd/cwfs/con.c b/sys/src/cmd/cwfs/con.c index 41fe43142..a58b0b52e 100644 --- a/sys/src/cmd/cwfs/con.c +++ b/sys/src/cmd/cwfs/con.c @@ -6,7 +6,6 @@ static char statsdef[20]; /* default stats list */ static int whoflag; static void consserve1(void *); -static void installcmds(void); void consserve(void) @@ -14,12 +13,7 @@ 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"); @@ -750,7 +744,7 @@ cmd_chatty(int argc, char *argv[]) chatty = atoi(argv[1]); } -static void +void installcmds(void) { cmd_install("allow", "-- disable permission checking", cmd_allow); |