Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Python thread problem

Reply
Thread Tools

Python thread problem

 
 
Ravi
Guest
Posts: n/a
 
      04-08-2004
Hi all,
I am running a python cgi which inturn calls a python thread.
This python thread executes some commands and sends an email to the
admin.
I am facing a strange problem, in the cgi script when I set
the python
thread to run as Daemon, then it does not send the email, but when I
donot set the thread as daemon, it does send the email.
Can somebody help me as to this behaviour ?

I am running the cgi and python scripts on linux. The only problem I
can see is that the email module is present in python2.3 and I have
python 2.3 installed at /usr/local/lib/python2.3 and also have
python1.5 installed at /usr/lib/python1.5.

Is this the problem for such behaviour? Is there a way to fix ? Could
somebody help me out please?

Thank you in advance.

Ravi.
 
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
html5lib not thread safe. Is the Python SAX library thread-safe? John Nagle Python 5 03-12-2012 04:07 PM
problem mutex-thread "Unlocking mutex owned by another thread ???" NaeiKinDus C++ 3 04-15-2007 09:35 PM
problem mutex-thread "Unlocking mutex owned by another thread ???" NaeiKinDus C++ 1 04-14-2007 07:40 PM
Problem in deleting the dynamic memory in a parent thread that is allocated from a child thread Manisha C++ 2 09-13-2004 05:48 PM
PyNew_Interpreter(): "Fatal Python error, invalid thread state for this thread" question vincent wehren Python 0 12-11-2003 08:09 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57