Article View: news.software.nntp
Article #70810Re: INN msync error - Mac OS X 10.3.8
From: Russ Allbery
Date: Sun, 06 Mar 2005 02:04
Date: Sun, 06 Mar 2005 02:04
31 lines
2286 bytes
2286 bytes
JB <jtb5358@yahoo.com> writes:
> Bo Lindbergh wrote:
>> Mac OS X 10.3 introduced a bug in the msync system call. It always
>> fails if the flags argument equals MS_ASYNC.
> But why did INN seem to work when I tried it at home? Hmmm... [grep
> through source code] aha, let me guess: innd uses msync but nnrpd
> doesn't?
Right, nnrpd doesn't write anything out to disk, and therefore doesn't
need to flush mmaped files.
> I see the msync call is made only if HAVE_MMAP is true. I'll try
> setting that flag to 0 in config.h, as a workaround.
INN requires mmap, so that isn't going to do what you want.
A better approach would be to add something like:
#undef MS_ASYNC
#define MS_ASYNC MS_SYNC
to include/portable/mmap.h after the inclusion of sys/mman.h. Note that
this will have a possibly noticable performance impact.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<87u0npa5sn.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mailReferences:
<1110035893.426806.249570@o13g2000cwo.googlegroups.com> <blgl-7BF186.21070105032005@news.bahnhof.se> <1110073092.908991.130980@l41g2000cwc.googlegroups.com>Show Full Headers
Complete Article Headers
Message-ID: <87u0npa5sn.fsf@windlord.stanford.edu> Subject: Re: INN msync error - Mac OS X 10.3.8 Date: Sat, 05 Mar 2005 18:04:24 -0800 From: Russ Allbery <rra@stanford.edu> References: <1110035893.426806.249570@o13g2000cwo.googlegroups.com> <blgl-7BF186.21070105032005@news.bahnhof.se> <1110073092.908991.130980@l41g2000cwc.googlegroups.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 31 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1110074664 4345 171.64.19.147 (6 Mar 2005 02:04:24 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4 (Jumbo Shrimp, linux) Cancel-Lock: sha1:gheGmFpmv+Znzm2XK3D9I6iBEP8=