Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Atomicity of signal handlers

Reply
Thread Tools

Atomicity of signal handlers

 
 
Mirko Zeibig
Guest
Posts: n/a
 
      08-07-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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to test for atomicity/mutability/hashability? kj Python 4 10-07-2010 09:22 PM
Q: Atomicity of class loading G. Ralph Kuntz, MD Java 8 12-16-2006 04:29 AM
Multiple interpreters and data atomicity Derek Basch Perl Misc 8 08-29-2006 09:20 PM
Async-signal safe functions in signal handlers (unix) Michael Pronath Python 1 01-03-2005 01:10 PM
Question regarding thread atomicity Jon Ribbens Python 3 11-24-2003 06:45 PM



Advertisments