New submission from Phil Connell:

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 

components: Library (Lib)
files: rfh_rename_fix.patch
keywords: patch
messages: 175277
nosy: pconnell, vinay.sajip
priority: normal
severity: normal
status: open
title: RotatingFileHandler rollover doesn't work on QNX shmem filesystems
versions: Python 2.7, Python 3.3
Added file:

Python tracker <>
Python-bugs-list mailing list

Reply via email to