[LON-CAPA-cvs] cvs: loncom / LONCAPA.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Fri, 11 Aug 2006 20:07:18 -0000
albertel Fri Aug 11 16:07:18 2006 EDT
Modified files:
/loncom LONCAPA.pm
Log:
- need to cleanup the sym if result is undefined
Index: loncom/LONCAPA.pm
diff -u loncom/LONCAPA.pm:1.12 loncom/LONCAPA.pm:1.13
--- loncom/LONCAPA.pm:1.12 Mon Jul 3 06:26:22 2006
+++ loncom/LONCAPA.pm Fri Aug 11 16:07:18 2006
@@ -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 @@
# 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 {