mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
factotum: fix log read inuse bug
When log reading exits, inuse flag should be cleared. Signed-off-by: Tw <wei.tan@intel.com>
This commit is contained in:
parent
c57b71966e
commit
9dab36f2af
3 changed files with 3 additions and 0 deletions
|
@ -111,6 +111,7 @@ extern char *owner; /* main.c */
|
|||
extern Proto *prototab[]; /* main.c */
|
||||
extern Ring ring; /* key.c */
|
||||
extern char *rpcname[]; /* rpc.c */
|
||||
extern int *loginuse; /* fs.c */
|
||||
|
||||
extern char Easproto[]; /* err.c */
|
||||
|
||||
|
|
|
@ -260,6 +260,7 @@ fskickreply(Conv *c)
|
|||
static int inuse[nelem(dirtab)];
|
||||
int *confirminuse = &inuse[0];
|
||||
int *needkeyinuse = &inuse[1];
|
||||
int *loginuse = &inuse[5];
|
||||
static void
|
||||
fsopen(Req *r)
|
||||
{
|
||||
|
|
|
@ -107,6 +107,7 @@ void
|
|||
logflush(Req *r)
|
||||
{
|
||||
lbflush(&logbuf, r);
|
||||
*loginuse = 0;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue