diff options
author | rsc <devnull@localhost> | 2005-03-24 05:45:01 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-03-24 05:45:01 +0000 |
commit | 78b5635d698a1d278fade51856e51520046261fc (patch) | |
tree | 8f7a444313c02c0834f2069bc24cfe155b74139b /src/cmd/netfiles | |
parent | 3ae1a866feb2dcaa31877ddb924687eea6c58ec4 (diff) | |
download | plan9port-78b5635d698a1d278fade51856e51520046261fc.tar.gz plan9port-78b5635d698a1d278fade51856e51520046261fc.tar.bz2 plan9port-78b5635d698a1d278fade51856e51520046261fc.zip |
More debugging; do not use /dev/tty explicitly.
Diffstat (limited to 'src/cmd/netfiles')
-rw-r--r-- | src/cmd/netfiles/main.c | 4 | ||||
-rw-r--r-- | src/cmd/netfiles/netfilelib.rc | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/cmd/netfiles/main.c b/src/cmd/netfiles/main.c index d7ee27a8..9bd9672b 100644 --- a/src/cmd/netfiles/main.c +++ b/src/cmd/netfiles/main.c @@ -231,6 +231,7 @@ plumbthread(void *v) CFid *fid; Plumbmsg *m; + threadsetname("plumbthread"); fid = plumbopenfid("netfileedit", OREAD); if(fid == nil){ fprint(2, "cannot open plumb/netfileedit: %r\n"); @@ -521,6 +522,7 @@ loopthread(void *v) { QLock lk; + threadsetname("loopthread"); qlock(&lk); qlock(&lk); } @@ -542,6 +544,8 @@ threadmain(int argc, char **argv) if(argc) usage(); + cprint("netfiles starting\n"); + threadnotify(nil, 0); /* set up correct default handlers */ fmtinstall('E', eventfmt); diff --git a/src/cmd/netfiles/netfilelib.rc b/src/cmd/netfiles/netfilelib.rc index 13af8440..4ea31495 100644 --- a/src/cmd/netfiles/netfilelib.rc +++ b/src/cmd/netfiles/netfilelib.rc @@ -13,7 +13,7 @@ fn runsftp { shift } if(! </dev/null dial 'unix!'^$ns/$1.sftp >[2]/dev/null){ - sftpcache -D $1 >/dev/tty + sftpcache -D $1 </dev/null >[1=2] } { if(! </dev/null dial 'unix!'^$ns/$1.sftp >[2]/dev/null){ @@ -23,7 +23,6 @@ fn runsftp { {cat; echo DONE} | dial -e 'unix!'^$ns/$1.sftp } } >$t.sftp1 >[2=1] - sed 's/^/1 /' $t.sftp1 sed '/^sftp> /d /^Connecting to /d /^Fetching /d |