Problem with threads and signals

Holger Joukl Holger.Joukl at LBBW.de
Wed Mar 17 05:22:47 EST 2004


Hi,
put some debug output in the code (print statements in the shutdown
function).
Does the shutdown function get called when you issue the signal?
How exactly do you handle the event communication in the treads´ shutdown
methods?
Please post the relevant code.
Btw, I am new to python2.x (not new to python, though). This is not working
code,
is it?
threads = {}
threads["dircheck"] = TimedDirectoryCheck("/tmp/dpf/notify")
threads["process"] = BatchProcessor()
# start the threads
for th in threads:
    th.start()  # <---- Does that work???

    Cheers
    Holger

Der Inhalt dieser E-Mail ist vertraulich. Falls Sie nicht der angegebene
Empfänger sind oder falls diese E-Mail irrtümlich an Sie adressiert wurde,
verständigen Sie bitte den Absender sofort und löschen Sie die E-Mail
sodann. Das unerlaubte Kopieren sowie die unbefugte Übermittlung sind nicht
gestattet. Die Sicherheit von Übermittlungen per E-Mail kann nicht
garantiert werden. Falls Sie eine Bestätigung wünschen, fordern Sie bitte
den Inhalt der E-Mail als Hardcopy an.

The contents of this  e-mail are confidential. If you are not the named
addressee or if this transmission has been addressed to you in error,
please notify the sender immediately and then delete this e-mail.  Any
unauthorized copying and transmission is forbidden. E-Mail transmission
cannot be guaranteed to be secure. If verification is required, please
request a hard copy version.







More information about the Python-list mailing list