diff options
author | rsc <devnull@localhost> | 2004-12-26 21:46:26 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-12-26 21:46:26 +0000 |
commit | 5c8a0421712a471a00dbf78f7ea054b366ba471b (patch) | |
tree | 7a3e33fba4d05b6a3cb647b3c6762a2aced34c5c /src/lib9p | |
parent | 60535a5ff621d2e0f1eb91a08c0e624cc6c76fbd (diff) | |
download | plan9port-5c8a0421712a471a00dbf78f7ea054b366ba471b.tar.gz plan9port-5c8a0421712a471a00dbf78f7ea054b366ba471b.tar.bz2 plan9port-5c8a0421712a471a00dbf78f7ea054b366ba471b.zip |
updates from plan 9
Diffstat (limited to 'src/lib9p')
-rw-r--r-- | src/lib9p/_post.c | 2 | ||||
-rw-r--r-- | src/lib9p/fid.c | 1 | ||||
-rw-r--r-- | src/lib9p/portdate | 13 | ||||
-rw-r--r-- | src/lib9p/req.c | 1 |
4 files changed, 16 insertions, 1 deletions
diff --git a/src/lib9p/_post.c b/src/lib9p/_post.c index e8313be1..4420c2d7 100644 --- a/src/lib9p/_post.c +++ b/src/lib9p/_post.c @@ -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); } diff --git a/src/lib9p/fid.c b/src/lib9p/fid.c index 2393f1c4..e0b6af5e 100644 --- a/src/lib9p/fid.c +++ b/src/lib9p/fid.c @@ -47,6 +47,7 @@ allocfid(Fidpool *pool, ulong fid) incfidref(f); if(caninsertkey(pool->map, fid, f) == 0){ closefid(f); + closefid(f); return nil; } diff --git a/src/lib9p/portdate b/src/lib9p/portdate new file mode 100644 index 00000000..277f24dc --- /dev/null +++ b/src/lib9p/portdate @@ -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 diff --git a/src/lib9p/req.c b/src/lib9p/req.c index 8e1aaab5..907db000 100644 --- a/src/lib9p/req.c +++ b/src/lib9p/req.c @@ -49,6 +49,7 @@ allocreq(Reqpool *pool, ulong tag) increqref(r); if(caninsertkey(pool->map, tag, r) == 0){ closereq(r); + closereq(r); return nil; } |