Python daemon in Linux

Discussion in 'Python' started by LarinAM@gmail.com, Jul 5, 2007.

  1. Guest

    i made MyThread(Thread)

    when isDaemon() == 0:
    everything works

    when isDaemon() == 1:
    nothing works

    why???
     
    , Jul 5, 2007
    #1
    1. Advertising

  2. Guest

    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
     
    , Jul 5, 2007
    #2
    1. Advertising

  3. Guest

    thanx benjamin )
    no more questions
     
    , Jul 5, 2007
    #3
    1. Advertising

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. Steph L
    Replies:
    2
    Views:
    887
    Alan Coopersmith
    Oct 28, 2003
  2. Philippe C. Martin

    SCLOGON 0.1 Smart Card event daemon for GNU/Linux

    Philippe C. Martin, Nov 5, 2005, in forum: Python
    Replies:
    0
    Views:
    308
    Philippe C. Martin
    Nov 5, 2005
  3. Jean-Paul Calderone
    Replies:
    0
    Views:
    463
    Jean-Paul Calderone
    Mar 20, 2009
  4. Floris Bruynooghe
    Replies:
    1
    Views:
    455
    Floris Bruynooghe
    Mar 24, 2009
  5. Daemon Win32::Daemon;

    , Sep 7, 2006, in forum: Perl Misc
    Replies:
    0
    Views:
    259
Loading...

Share This Page