Date: Wed, 28 Jul 2010 11:09:07 +0200 From: Jille Timmermans <jille@quis.cx> To: Hans Petter Selasky <hselasky@c2i.net> Cc: freebsd-current@freebsd.org Subject: Re: mmap() problem Message-ID: <4C4FF3B3.70403@quis.cx> In-Reply-To: <201007281056.43100.hselasky@c2i.net> References: <201007281056.43100.hselasky@c2i.net>
next in thread | previous in thread | raw e-mail | index | archive | help
 From close(3):
      The close(2) system call does not unmap pages, see munmap(2) for further
      information.
The pages can be freed when the process terminates.
-- Jille
Op 28-7-2010 10:56, Hans Petter Selasky schreef:
> Hi,
>
> When is it safe to free memory which has been mmapped to a user-space
> application? After close() or during close() or before close() or when the
> process/thread terminates?
>
> --HPS
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C4FF3B3.70403>
