X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fstatd%2Fmonitor.c;h=eadc43441fbd1e6a0ebeba00b6f5e6ca77754432;hb=ec637de16210c1c6fcb3a0df34d7889592f577dc;hp=c447a269bb9b86f2c82091ff7844e6cb693977ac;hpb=4b2f63a5e581ecfa12abb2419310c4e62eb27134;p=nfs-utils.git diff --git a/utils/statd/monitor.c b/utils/statd/monitor.c index c447a26..eadc434 100644 --- a/utils/statd/monitor.c +++ b/utils/statd/monitor.c @@ -280,7 +280,7 @@ void load_state(void) b = strchr(buf, '\n'); if (b) *b = 0; sscanf(buf, "%x %x %x %x ", - &addr, &prog, &vers, &proc, myname); + &addr, &prog, &vers, &proc); b = buf+36; for (i=0; idns_name, 1); nlist_free(&rtnl, clnt); - xunlink(SM_DIR, mon_name, 1); return (&result); } else @@ -445,8 +445,8 @@ sm_unmon_all_1_svc(struct my_id *argp, struct svc_req *rqstp) temp = NL_NEXT(clnt); /* PRC: do the HA callout: */ ha_callout("del-client", mon_name, my_name, -1); + xunlink(SM_DIR, clnt->dns_name, 1); nlist_free(&rtnl, clnt); - xunlink(SM_DIR, mon_name, 1); ++count; clnt = temp; } else