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.


Jon Newman

Reply via email to