~james-w/aptdaemon/fix-455861

Viewing all changes in revision 340.

  • Committer: James Westby
  • Date: 2010-03-15 02:05:34 UTC
  • Revision ID: james.westby@canonical.com-20100315020534-k212tiykvyxoa0o0
Don't race between closing the debconf socket and accessing it.

As the gobject io watch events arrive asynchronously they can race with
the closing of the socket. Use a lock to ensure that they don't access the
socket at the same time, and a variable so that the callback will exit
queitly if it loses the race and waits on the lock.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: