Select, interrupted system call, log rotation?

Vinay Sajip vinay_sajip at yahoo.co.uk
Sun Dec 7 07:21:57 EST 2008


On Dec 6, 8:39 pm, Rainy <andrei.... at gmail.com> wrote:
> I got an interrupted system call exception in select and I don't know
> what could have caused it. Here's the error:
>
>     select.select(inputs, [], [], 9)
> error: (4, 'Interrupted system call')
> Caught an exception, shutting down...
>
> It's py2.3, on mach architecture.
>
> I'm trying to figure out what caused it, and the only idea I have so
> far is that it could be that I have python's logging system log
> rotation thing running and I think I've seen a reference somewhere
> that it uses SIGALRM when log file reaches set size to stop and switch

Python's logging package doesn't use signals, as it's cross-platform.
The handler just checks when a log event is handled whether rotation
should occur, and if it should, then the log files are rotated.

Regards,


Vinay Sajip



More information about the Python-list mailing list