Message175277
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 http://www.qnx.com/developers/docs/6.4.0/neutrino/sys_arch/fsys.html#DEVSHMEM - 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:10 | pconnell | set | recipients:
+ pconnell, vinay.sajip |
2012-11-10 14:36:10 | pconnell | set | messageid: <1352558170.33.0.527628732316.issue16449@psf.upfronthosting.co.za> |
2012-11-10 14:36:10 | pconnell | link | issue16449 messages |
2012-11-10 14:36:10 | pconnell | create | |
|