Author pconnell
Recipients pconnell, vinay.sajip
Date 2012-11-10.14:36:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
logging.handlers.RotatingFileHandler.doRollover fails on QNX /dev/shmem filesystems (seen on a 6.4.0-based system).

QNX RAM filesystems don't support rename() (see - it's a 'big filesystem' feature).

So for example, rename("/dev/shmem/foo", "/dev/shmem/bar") fails with EXDEV.

This is easily fixed by using shutils.move rather than os.rename where appropriate, falling back to copying if a rename() fails. It's not sufficient to set the rotator attribute, since there are other os.rename calls in in doRollover.
Date User Action Args
2012-11-10 14:36:10pconnellsetrecipients: + pconnell, vinay.sajip
2012-11-10 14:36:10pconnellsetmessageid: <>
2012-11-10 14:36:10pconnelllinkissue16449 messages
2012-11-10 14:36:10pconnellcreate