mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
add verbose9pserve environment variable; fix afid ref
This commit is contained in:
parent
5a79cf71c2
commit
3a6f92eed1
1 changed files with 6 additions and 1 deletions
|
@ -127,9 +127,12 @@ extern int _threaddebuglevel;
|
|||
void
|
||||
threadmain(int argc, char **argv)
|
||||
{
|
||||
char *file;
|
||||
char *file, *x;
|
||||
int fd;
|
||||
|
||||
x = getenv("verbose9pserve");
|
||||
if(x)
|
||||
verbose = atoi(x);
|
||||
ARGBEGIN{
|
||||
default:
|
||||
usage();
|
||||
|
@ -338,6 +341,8 @@ connthread(void *arg)
|
|||
err(m, "unknown fid");
|
||||
continue;
|
||||
}
|
||||
if(m->afid)
|
||||
m->afid->ref++;
|
||||
m->fid = fidnew(m->tx.fid);
|
||||
if(puthash(c->fid, m->tx.fid, m->fid) < 0){
|
||||
err(m, "duplicate fid");
|
||||
|
|
Loading…
Reference in a new issue