Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Apr 2023 14:07:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 270810] munmap does not always sync the underlying file
Message-ID:  <bug-270810-227-0bvRzAVxrO@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-270810-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-270810-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270810

--- Comment #2 from geoffrey@dommett.com ---
Well, most writes are updated on the server, (and all seem to be if the pro=
gram
performs other activity before exiting) but pages get randomly missed if the
program exits soon after ther writes. Not guaranteeing the writes seems
completely against the posix standard which states:
The mmap() function adds an extra reference to the file associated with the
file descriptor fildes which is not removed by a subsequent close() on that
file descriptor. This reference is removed when there are no more mappings =
to
the file.

Also see this stackoverflow question=20
https://stackoverflow.com/questions/17490033/do-i-need-to-keep-a-file-open-=
after-calling-mmap-on-it

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-270810-227-0bvRzAVxrO>