Deleting an file that's been NSData memory mapped - safe?
Deleting an file that's been NSData memory mapped - safe?
- Subject: Deleting an file that's been NSData memory mapped - safe?
- From: Dan Lau <email@hidden>
- Date: Thu, 11 Feb 2016 11:44:32 -0800
If a file has its contents mapped using NSData's
initWithContentsOfFile + NSDataReadingMappedIfSafe,
deleting it doesn't appear to affect reading it's mapped contents. Does
anyone know if NSData uses mmap(2) under the hood to ensure that this sort
of operation is valid?
Dan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden