[#7055] More on VC++ 2005 — Austin Ziegler <halostatue@...>

Okay. I've got Ruby compiling. I'm attempting to get everything in

17 messages 2006/01/05
[#7058] Re: More on VC++ 2005 — nobuyoshi nakada <nobuyoshi.nakada@...> 2006/01/06

Hi,

[#7084] mathn: ugly warnings — hadmut@... (Hadmut Danisch)

Hi,

22 messages 2006/01/10
[#7097] Re: mathn: ugly warnings — Daniel Berger <Daniel.Berger@...> 2006/01/10

Hadmut Danisch wrote:

[#7098] Design contracts and refactoring (was Re: mathn: ugly warnings) — mathew <meta@...> 2006/01/10

Daniel Berger wrote:

[#7118] Re: Design contracts and refactoring (was Re: mathn: ugly warnings) — mathew <meta@...> 2006/01/12

*Dean Wampler *<deanwampler gmail.com> writes:

[#7226] Fwd: Re: Question about massive API changes — "Sean E. Russell" <ser@...>

Hello,

23 messages 2006/01/28
[#7228] Re: Question about massive API changes — Caleb Tennis <caleb@...> 2006/01/28

>

Re: Calling flock with block?

From: ara.t.howard@...
Date: 2006-01-12 15:28:11 UTC
List: ruby-core #7117
On Thu, 12 Jan 2006, Bertram Scharpf wrote:

>> it's not needed.  also, since getting a lock releases ALL other locks on the
>> file this needs to throw an error
>>
>>   open(path,"r+") do |f|
>>     f.flock(File::LOCK_EX) do
>>       f.flock(File::LOCK_SH) do
>>         # we don't have the lock here, error should be raised!
>>       end
>>     end
>>   end
>
> As there's no use of nested locking it should be inhibited
> at all.

well...  i'm not sure that's quite true.  the example above could be quite
well intended to downgrade a write lock to a read lock...  so it's unclear
whether it should warn or raise... probably raise is best.  and i think the
forking issue is basically unsolvable since flock, unlike fcntl, provides no
mechanism for checking which pid holds a lock...

> Admittedly, file locking and all of that partially file locking is not
> actually the most convincing feature of Un*x ...

yes.  i use posixlock in all my stuff - it's 2% better and safe on all fs.

>> strong and healthy, who thinks of sickness until it strikes like lightning?
>> preoccupied with the world, who thinks of death, until it arrives like
>> thunder?  -- milarepa
>
> jc did.

ok - i haven't drank my coffee yet - who is jc?

-a
-- 
strong and healthy, who thinks of sickness until it strikes like lightning?
preoccupied with the world, who thinks of death, until it arrives like
thunder?  -- milarepa


In This Thread

Prev Next