Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Python daemon in Linux

Reply
Thread Tools

Python daemon in Linux

 
 
LarinAM@gmail.com
Guest
Posts: n/a
 
      07-05-2007
i made MyThread(Thread)

when isDaemon() == 0:
everything works

when isDaemon() == 1:
nothing works

why???

 
Reply With Quote
 
 
 
 
LarinAM@gmail.com
Guest
Posts: n/a
 
      07-05-2007
As far as I understand the issue, any Python process has a sort of
"main" thread. When the main thread exits, the Python process will
exit
if there are only daemon threads around. If there are any non-daemon
threads, the Python process will only exit after those threads are
finished.
Or, as the documentation says: "The entire Python program exits when
no
active non-daemon threads are left."

Kind regards,
Benjamin

 
Reply With Quote
 
 
 
 
LarinAM@gmail.com
Guest
Posts: n/a
 
      07-05-2007
thanx benjamin )
no more questions

 
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
Python daemonisation with python-daemon Thomas Courbon Python 0 04-30-2010 03:13 PM
Re: PEP 3143: Standard daemon process library (was: Writing awell-behaved daemon) Floris Bruynooghe Python 1 03-24-2009 02:58 PM
Re: PEP 3143: Standard daemon process library (was: Writing awell-behaved daemon) Jean-Paul Calderone Python 0 03-20-2009 01:02 PM
Daemon Win32::Daemon; ph1975@gmail.com Perl Misc 0 09-07-2006 10:58 AM
Porting from OpenBSD/Linux to Solaris : daemon(3) Steph L C Programming 2 10-28-2003 06:57 AM



Advertisments