diff options
author | Jeffrey Stedfast <fejj@novell.com> | 2004-06-25 01:44:13 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-06-25 01:44:13 +0800 |
commit | 4633426c1b666ee82f6a5e663952d3370a5b572b (patch) | |
tree | 9ed0027d8ad2d403e6ec5861c7fab09e262d4657 /camel/providers | |
parent | 38f4f2cd20d68010f15e5ace7a895903211a10f2 (diff) | |
download | gsoc2013-evolution-4633426c1b666ee82f6a5e663952d3370a5b572b.tar.gz gsoc2013-evolution-4633426c1b666ee82f6a5e663952d3370a5b572b.tar.zst gsoc2013-evolution-4633426c1b666ee82f6a5e663952d3370a5b572b.zip |
If we fail to lock the folder, close the lockfd and reset it to -1. Fixes
2004-06-24 Jeffrey Stedfast <fejj@novell.com>
* providers/local/camel-spool-folder.c (spool_lock): If we fail to
lock the folder, close the lockfd and reset it to -1. Fixes bug
#54680.
svn path=/trunk/; revision=26499
Diffstat (limited to 'camel/providers')
-rw-r--r-- | camel/providers/local/camel-spool-folder.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/camel/providers/local/camel-spool-folder.c b/camel/providers/local/camel-spool-folder.c index 4c4a49fbf9..a1b1901142 100644 --- a/camel/providers/local/camel-spool-folder.c +++ b/camel/providers/local/camel-spool-folder.c @@ -166,7 +166,10 @@ spool_lock(CamelLocalFolder *lf, CamelLockType type, CamelException *ex) } retry++; } - + + close (mf->lockfd); + mf->lockfd = -1; + return -1; } |