summaryrefslogtreecommitdiff
path: root/sys/src/cmd/cwfs/con.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-07-12 21:00:12 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2012-07-12 21:00:12 +0200
commit53f5bdfd06cce8093de005b8d706b752d3567cfa (patch)
treeb4cf65096642c5e88dc002fa3d1af9c4f37b5465 /sys/src/cmd/cwfs/con.c
parent55959acbdf97f3cb82a10370dd165cc061b2155c (diff)
cwfs: set whochan for who command, cleanup
Diffstat (limited to 'sys/src/cmd/cwfs/con.c')
-rw-r--r--sys/src/cmd/cwfs/con.c7
1 files changed, 2 insertions, 5 deletions
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");
}
}