Date: Thu, 16 Aug 2007 23:23:39 GMT From: Fredrik Lindberg <fli@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 125245 for review Message-ID: <200708162323.l7GNNdvo038305@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=125245 Change 125245 by fli@fli_nexus on 2007/08/16 23:23:35 Fix cache dump command (coding without testing is bad...) Affected files ... .. //depot/projects/soc2007/fli-mdns_sd/mdnsd/clisrv.c#7 edit Differences ... ==== //depot/projects/soc2007/fli-mdns_sd/mdnsd/clisrv.c#7 (text+ko) ==== @@ -1390,13 +1390,13 @@ } RW_WLOCK(mif, mif_lock); cache_flush(&mif->mif_cache); - RW_WLOCK(mif, mif_lock); + RW_UNLOCK(mif, mif_lock); } else { TAILQ_FOREACH(mif, &g->g_ifs_head, mif_next) { RW_WLOCK(mif, mif_lock); cache_flush(&mif->mif_cache); - RW_WLOCK(mif, mif_lock); + RW_UNLOCK(mif, mif_lock); } } @@ -1477,6 +1477,8 @@ if (tmplen <= 0) continue; + mc.mc_reclen = tmplen; + tmplen *= sizeof(wchar_t); rmih.mih_msglen = sizeof(struct mipc_head) + sizeof(struct mipc_cache) + tmplen + rr->rr_len;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708162323.l7GNNdvo038305>