Subject: Re: Interesting behavior while testing locking code on the mac...
From: Dejan Muhamedagic (dejanm@aon.at)
Date: Wed Jun 21 2000 - 06:57:10 EDT
Hi,
On Tue, Jun 20, 2000 at 12:28:25PM -0700, Jonathan Newman wrote:
> While testing some code on my mac that deals with file locking, I ran across
> an interesting behavior. If I have locked a range with PBLockRange (mac
> system call), and then unlock the same range twice with two calls to
> PBUnlockRange, I lose the connection to the netatalk server. The connection
> is immediately dropped, and I get this in the logs:
>
> Jun 20 12:12:58 monet afpd[6331]: server_child[1] 14732 killed
>
> When I have more time, I will look into on the server side of things. This
> may be an explanation for the strange disconnects people have been seeing
> from time to time. The wrong error code ends up being returned from the
> unlock function aspSessClosed (-1072) instead of afpRangeNotLocked (-5020),
> and the volume is unmounted.
>
> FYI, this is on asun2.1.4-37 and a mac running OS 8.6.
Did you try this on 2.1.4-39? I can vaguely recall that some
apps used to release locks twice and that this has been taken care
of subsequently. Also, the netatalk version you are using, was it
compiled with byte level locking?
Cheers!
Dejan
This archive was generated by hypermail 2b28 : Wed Jan 17 2001 - 14:31:18 EST