Atomicity of signal handlers

Mirko Zeibig mirko-lists at zeibig.net
Thu Aug 7 04:29:58 EDT 2003


Hello,

assuming I have a C++-library implementing tracing, where the tracefile is
implemented as singleton and implements a method rotateLogs.

Is it safe to have something like:

def handleSIGUSR2(signal, frame):
    tracelib.rotateLogs()

signal.signal(signal.SIGUSR2, handleSIGUSR2)

Regards
Mirko





More information about the Python-list mailing list