ITS#4259 ignore alock_close on zero slot

This commit is contained in:
Howard Chu 2005-12-20 00:46:51 +00:00
parent 705fa45655
commit 28ed7a26a7

View File

@ -504,6 +504,9 @@ alock_close ( alock_info_t * info )
alock_slot_t slot_data;
int res;
if ( !info->al_slot )
return ALOCK_CLEAN;
(void) memset ((void *) &slot_data, 0, sizeof(alock_slot_t));
res = alock_grab_lock (info->al_fd, 0);