From owner-freebsd-current@FreeBSD.ORG Wed Jul 28 09:41:16 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9320F1065672 for ; Wed, 28 Jul 2010 09:41:16 +0000 (UTC) (envelope-from jille@quis.cx) Received: from mulgore.hexon-is.nl (mulgore.hexon-is.nl [82.94.237.14]) by mx1.freebsd.org (Postfix) with ESMTP id 2E4C78FC15 for ; Wed, 28 Jul 2010 09:41:15 +0000 (UTC) Received: from adidas.hexon-nijmegen.nl (gw.hexon-nijmegen.nl [82.93.241.107]) by mulgore.hexon-is.nl (8.14.3/8.14.3) with ESMTP id o6S99CJB013699; Wed, 28 Jul 2010 11:09:12 +0200 Received: from [10.0.0.142] (HENK.hexon-nijmegen.nl [10.0.0.142]) by adidas.hexon-nijmegen.nl (8.14.3/8.14.3) with ESMTP id o6S99CRf022565; Wed, 28 Jul 2010 11:09:12 +0200 Message-ID: <4C4FF3B3.70403@quis.cx> Date: Wed, 28 Jul 2010 11:09:07 +0200 From: Jille Timmermans User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.9.2.7) Gecko/20100713 Thunderbird/3.1.1 MIME-Version: 1.0 To: Hans Petter Selasky References: <201007281056.43100.hselasky@c2i.net> In-Reply-To: <201007281056.43100.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Hexon-MailScanner-Information: Please contact the ISP for more information X-Hexon-MailScanner-ID: o6S99CJB013699 X-Hexon-MailScanner: Found to be clean X-Hexon-MailScanner-From: jille@quis.cx X-Hexon-MailScanner-Watermark: 1280912953.62771@ZiMzZ0keSDfSy11Bedubiw Cc: freebsd-current@freebsd.org Subject: Re: mmap() problem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jul 2010 09:41:16 -0000 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"