Mercurial > noffle
diff src/lock.c @ 183:c912e8288164 noffle
[svn] * src/client.c: Only bail out of fetching multiple articles if the
connection fails. If we do get a status from the upstream server
note it and see what is reported for the next article. Otherwise
failure to retrieve one article will cause all successive article
fetches to fail even through they would succeed if tried.
* src/lock.c: Fix assert in lazy locking. If another noffle signalled us
to release the lock at the next close, and then repeats the signal so that
it arrives during LOCK_closeDatabases, the signal handler was trying
to close the databases again.
author | bears |
---|---|
date | Tue, 15 May 2001 13:07:53 +0100 |
parents | 7ba337dafb2c |
children | fed1334d766b |
line wrap: on
line diff
--- a/src/lock.c Thu May 10 17:07:46 2001 +0100 +++ b/src/lock.c Tue May 15 13:07:53 2001 +0100 @@ -1,7 +1,7 @@ /* lock.c - $Id: lock.c 260 2001-02-25 23:29:50Z bears $ + $Id: lock.c 292 2001-05-15 12:07:53Z bears $ */ #if HAVE_CONFIG_H @@ -233,9 +233,13 @@ { UNUSED( sig ); + /* + * If we hold the lock right now, flag it to be released next close. + * Otherwise, if we are holding it lazily, release it. + */ if ( globalLock.lazyLockBusy ) globalLock.lazyClose = FALSE; - else + else if ( gotLock( &globalLock ) ) closeDatabases(); return; } @@ -280,7 +284,7 @@ blockSignal( FALSE ); } -/* Sync al databases to disc. Maintain global lock status. */ +/* Sync all databases to disc. Maintain global lock status. */ void Lock_syncDatabases( void ) {