Re: My app breaks when moved while running
Re: My app breaks when moved while running
- Subject: Re: My app breaks when moved while running
- From: "Kyle Sluder" <email@hidden>
- Date: Fri, 8 Feb 2008 12:16:34 -0500
On Feb 8, 2008 12:11 PM, Jens Alfke <email@hidden> wrote:
> Another issue with caching aliases is that it's prone to race
> conditions. At some point you have to dereference the alias into a
> path, and then use the path. If the app moves in between those two
> moments, the attempt to use the path will fail.
Alias records since 10.3 (I think) dereference based on path
heuristics first, and then fall back on attribute matching. While not
immune to the race condition (call to dereference, block on IO, get
scheduled off processor, file moves and is truncated or something, get
scheduled back on processor and begin executing) it's at least a bit
more resilient.
--Kyle Sluder
_______________________________________________
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