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. Advertisements

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. steffen staehle
    Replies:
    0
    Views:
    622
    steffen staehle
    Sep 7, 2004
  2. Jon Ribbens

    Question regarding thread atomicity

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

    Q: Atomicity of class loading

    G. Ralph Kuntz, MD, Dec 15, 2006, in forum: Java
    Replies:
    8
    Views:
    445
    Daniel Pitts
    Dec 16, 2006
  5. Free Bird

    Two question about signal handlers

    Free Bird, Jul 25, 2005, in forum: C Programming
    Replies:
    7
    Views:
    420
    Free Bird
    Jul 27, 2005
  6. kj
    Replies:
    4
    Views:
    561
    Arnaud Delobelle
    Oct 7, 2010
  7. Derek Basch

    Multiple interpreters and data atomicity

    Derek Basch, Aug 29, 2006, in forum: Perl Misc
    Replies:
    8
    Views:
    206
    Keith Keller
    Aug 29, 2006
  8. John Bokma

    setTimeOut and atomicity

    John Bokma, Dec 9, 2005, in forum: Javascript
    Replies:
    4
    Views:
    164
    Thomas 'PointedEars' Lahn
    Dec 10, 2005
Loading...