Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 May 2002 13:16:50 +0800
From:      Eugene Grosbein <eugen@svzserv.kemerovo.su>
To:        Matthew Dillon <dillon@apollo.backplane.com>
Cc:        stable@FreeBSD.ORG
Subject:   Re: NFS problem with 4.6-PRERELEASE: SIGBUG in Apache
Message-ID:  <3CEF1E41.841937F4@svzserv.kemerovo.su>
References:  <3CEE5094.EFF31B42@grosbein.pp.ru> <200205242137.g4OLbFmi058923@apollo.backplane.com> <20020525102224.A43047@svzserv.kemerovo.su> <200205250250.g4P2oSdA060174@apollo.backplane.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Matthew Dillon wrote:

>     You can try two things.  First, try this:
> 
>         update the file as index.html.new
>         mv index.html.new index.html
> 
>     If that doesn't work then you may have to do it non-atomically and keep
>     the last file around so any open file descriptors and mmap()ings on the
>     client remain valid.
> 
>         update the file as index.html.new
>         mv index.html index.html.old
>         mv index.html.new index.html

Well, I can try this but I'd like to thing about general approach.
Perhaps, mmap should fail for files residing on NFS?
For example, Apache will then switch to another method of reading.

Eugene

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3CEF1E41.841937F4>