At 19:39 -0500 1/9/02, Chris Nandor wrote:
>flock() is rarely necessary in MacPerl.  Mac OS won't allow more than one
>app to write to a file at one time, usually, anyway.

If that's the case why can't I attempt to access a file, for writing, in the process 
of being downloaded  by either MacPerl's www modules or, via AppleEvents, a browser 
and expect to get a failure so I can wait for completion? What happens is that perl 
goes ahead and reads an empty file.

There is a real confusion between the operation of the AppleOS and perl's insistence 
that file access behave according to UNIX conventions. AppleScript has the same 
problem. Flock only applies to cooperative UNIX processes anyway.

iCab now actually returns a completion message to an AppleEvent requesting a download. 
It is a refreshing change.


-- 
--> If you are presented a number as a percentage, and you do not clearly understand 
the numerator and the denominator involved, you are surely being lied to. <--

Reply via email to