From: Nobuyoshi Nakada Date: 2010-12-18T14:26:45+09:00 Subject: [ruby-core:33765] Re: unnecessary mkdir(lock) in tempfile.rb Hi, At Fri, 10 Dec 2010 06:13:52 +0900 Eric Wong wrote in [ruby-core:33657]: > Since tempfile.rb uses the O_EXCL flag as of r816 (July 2000), there is > no reason for the use of a temporary directory as a (broken) locking > mechanism. From what I can tell, the mkdir "lock" was introduced in > introduced in July 1998 at r280, so it precedes the addition of O_EXCL > by 2 years and it's a leftover remnant. Because O_EXCL doesn't work on NFS. -- Nobu Nakada