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

Reply via email to