updates from plan 9

This commit is contained in:
rsc 2004-12-26 21:46:26 +00:00
parent 60535a5ff6
commit 5c8a042171
4 changed files with 16 additions and 1 deletions

View file

@ -33,8 +33,8 @@ _post2(void *v)
Srv *s;
s = v;
rfork(RFNOTEG);
if(!s->leavefdsopen){
rfork(RFNOTEG);
rendezvous((ulong)s, 0);
close(s->srvfd);
}

View file

@ -46,6 +46,7 @@ allocfid(Fidpool *pool, ulong fid)
incfidref(f);
incfidref(f);
if(caninsertkey(pool->map, fid, f) == 0){
closefid(f);
closefid(f);
return nil;
}

13
src/lib9p/portdate Normal file
View file

@ -0,0 +1,13 @@
_post.c 2004/1225
dirread.c 2004/1225
fid.c 2004/1225
file.c 2004/1225
intmap.c 2004/1225
mem.c 2004/1225
req.c 2004/1225
parse.c 2004/1225
post.c 2004/1225
srv.c 2004/1225
tpost.c 2004/1225
uid.c 2004/1225
util.c 2004/1225

View file

@ -48,6 +48,7 @@ allocreq(Reqpool *pool, ulong tag)
increqref(r);
increqref(r);
if(caninsertkey(pool->map, tag, r) == 0){
closereq(r);
closereq(r);
return nil;
}