Date: Thu, 27 Oct 2011 14:11:19 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r226838 - stable/8/contrib/csup Message-ID: <201110271411.p9REBJQQ010134@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Thu Oct 27 14:11:19 2011 New Revision: 226838 URL: http://svn.freebsd.org/changeset/base/226838 Log: MFC r225979: Update the comment. MFC r225980: Handle the situation where fixups_close() has been called but more fixups are still available on the queue. Modified: stable/8/contrib/csup/fixups.c stable/8/contrib/csup/updater.c Directory Properties: stable/8/contrib/csup/ (props changed) Modified: stable/8/contrib/csup/fixups.c ============================================================================== --- stable/8/contrib/csup/fixups.c Thu Oct 27 14:07:57 2011 (r226837) +++ stable/8/contrib/csup/fixups.c Thu Oct 27 14:11:19 2011 (r226838) @@ -141,7 +141,7 @@ fixups_get(struct fixups *f) fixups_lock(f); while (f->size == 0 && !f->closed) pthread_cond_wait(&f->cond, &f->lock); - if (f->closed) { + if (f->closed && f->size == 0) { fixups_unlock(f); return (NULL); } Modified: stable/8/contrib/csup/updater.c ============================================================================== --- stable/8/contrib/csup/updater.c Thu Oct 27 14:07:57 2011 (r226837) +++ stable/8/contrib/csup/updater.c Thu Oct 27 14:11:19 2011 (r226838) @@ -238,7 +238,7 @@ updater(void *arg) /* * Make sure to close the fixups even in case of an error, - * so that the lister thread doesn't block indefinitely. + * so that the detailer thread doesn't block indefinitely. */ fixups_close(up->config->fixups); if (!error)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110271411.p9REBJQQ010134>