projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdec1b4
)
Don't fail on cache write error
author
Jamie Cameron
<jcameron@webmin.com>
Mon, 18 Apr 2011 05:17:47 +0000
(22:17 -0700)
committer
Jamie Cameron
<jcameron@webmin.com>
Mon, 18 Apr 2011 05:17:47 +0000
(22:17 -0700)
web-lib-funcs.pl
patch
|
blob
|
history
diff --git
a/web-lib-funcs.pl
b/web-lib-funcs.pl
index
e717fb3
..
84353a4
100755
(executable)
--- a/
web-lib-funcs.pl
+++ b/
web-lib-funcs.pl
@@
-4713,7
+4713,13
@@
else {
$cache{'mtime_'.$r} = $st[9];
}
$cache{'lang'} = $current_lang;
- &write_file($cache_file, \%cache) if (!$_[0] && $< == 0 && $> == 0);
+ if (!$_[0] && $< == 0 && $> == 0) {
+ eval {
+ # Don't fail if cache write fails
+ local $main::error_must_die = 1;
+ &write_file($cache_file, \%cache);
+ }
+ }
}
# Override descriptions for modules for current user