Atomicity of signal handlers

Discussion in 'Python' started by Mirko Zeibig, Aug 7, 2003.

  1. Mirko Zeibig

    Mirko Zeibig Guest

    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
     
    Mirko Zeibig, Aug 7, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jon Ribbens

    Question regarding thread atomicity

    Jon Ribbens, Nov 24, 2003, in forum: Python
    Replies:
    3
    Views:
    307
    Paul Rubin
    Nov 24, 2003
  2. Michael Pronath
    Replies:
    1
    Views:
    1,175
    Diez B. Roggisch
    Jan 3, 2005
  3. G. Ralph Kuntz, MD

    Q: Atomicity of class loading

    G. Ralph Kuntz, MD, Dec 15, 2006, in forum: Java
    Replies:
    8
    Views:
    317
    Daniel Pitts
    Dec 16, 2006
  4. kj
    Replies:
    4
    Views:
    407
    Arnaud Delobelle
    Oct 7, 2010
  5. Derek Basch

    Multiple interpreters and data atomicity

    Derek Basch, Aug 29, 2006, in forum: Perl Misc
    Replies:
    8
    Views:
    127
    Keith Keller
    Aug 29, 2006
Loading...

Share This Page