[collectd-changes] collectd, the system statistics collection daemon: Changes to 'collectd-4.5'
Florian Forster
octo at verplant.org
Tue Feb 24 11:46:21 CET 2009
src/common.c | 41 ++++++++++++++++++++++++++---------------
1 files changed, 26 insertions(+), 15 deletions(-)
New commits:
commit da70cd0f24be40b2d76a9dd88ff8264b52c989bd
Author: Sebastian Harl <sh at tokkee.org>
Date: Tue Feb 24 11:27:22 2009 +0100
src/common.c: Fixed a race condition in check_create_dir().
Between checking for the existence of a directory using stat() and creating
the directory using mkdir(), another thread might have already created the
directory thus causing mkdir() to fail with errno == EEXIST. This case is now
handled sanely, no longer causing the function (and thus some write callback)
to fail in this case.
Most likely, this only happens during startup when creating the data
directories - later, no two threads should try to create the same directory.
Interestingly enough, I frequently encountered this issue on a single core
machine.
More information about the collectd-changes
mailing list