From 53f5bdfd06cce8093de005b8d706b752d3567cfa Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Thu, 12 Jul 2012 21:00:12 +0200 Subject: cwfs: set whochan for who command, cleanup --- sys/src/cmd/cwfs/con.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sys/src/cmd/cwfs/con.c') diff --git a/sys/src/cmd/cwfs/con.c b/sys/src/cmd/cwfs/con.c index 41fe43142..11fcadf8d 100644 --- a/sys/src/cmd/cwfs/con.c +++ b/sys/src/cmd/cwfs/con.c @@ -342,11 +342,8 @@ cmd_hangup(int argc, char *argv[]) print("that chan is hung up\n"); continue; } - if(cp->chan == n) { - /* need more than just fileinit with tcp */ - chanhangup(cp, "console command", 1); - fileinit(cp); - } + if(cp->chan == n) + chanhangup(cp, "console command"); } } -- cgit v1.2.3