mmap() problem

Jille Timmermans jille at quis.cx
Wed Jul 28 09:41:16 UTC 2010


 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"


More information about the freebsd-current mailing list