--- loncom/LONCAPA.pm 2006/07/03 10:26:22 1.12 +++ loncom/LONCAPA.pm 2006/08/11 20:07:18 1.13 @@ -1,7 +1,7 @@ # The LearningOnline Network # Base routines # -# $Id: LONCAPA.pm,v 1.12 2006/07/03 10:26:22 foxr Exp $ +# $Id: LONCAPA.pm,v 1.13 2006/08/11 20:07:18 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -297,7 +297,12 @@ sub _do_hash_untie { # Change access mode to non-blocking $how=$how|&GDBM_NOLOCK(); # Go ahead and tie the hash - return &_do_hash_tie($file_prefix,$namespace,$how,$loghead,$what); + my $result = + &_do_hash_tie($file_prefix,$namespace,$how,$loghead,$what); + if (!$result) { + &clean_sym(); + } + return $result; } sub flock_sym {