tfix race - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 80097b018284589b1a3dd8d59549bbf7d3c67e8b
 (DIR) parent 257d7b48a653c7aac41a38b28f6c8c2e39241c92
 (HTM) Author: rsc <devnull@localhost>
       Date:   Fri, 18 Mar 2005 23:16:34 +0000
       
       fix race
       
       Diffstat:
         M src/cmd/auth/factotum/fs.c          |       6 +++---
       
       1 file changed, 3 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/src/cmd/auth/factotum/fs.c b/src/cmd/auth/factotum/fs.c
       t@@ -231,9 +231,9 @@ fskickreply(Conv *c)
                Req *r;
        
                if(c->hangup){
       -                if(c->req){
       -                        respond(c->req, "hangup");
       +                if((r = c->req) != nil){
                                c->req = nil;
       +                        respond(r, "hangup");
                        }
                        return;
                }
       t@@ -246,8 +246,8 @@ fskickreply(Conv *c)
                r->ofcall.data = c->reply;
                if(r->ofcall.count > r->ifcall.count)
                        r->ofcall.count = r->ifcall.count;
       -        respond(r, nil);
                c->req = nil;
       +        respond(r, nil);
                c->nreply = 0;
        }