Python subprocess question

skip at pobox.com skip at pobox.com
Tue Jan 6 13:18:42 EST 2009


    Roger> .setDaemon(True) means the thread gets destroyed when the program
    Roger> exits and default .setDaemon(False) means that the thread
    Roger> continues to process even when the main program is gone?

Approximately.  The main thread (and thus the program) will exit only when
all non-daemon threads have finished.  A thread can't continue to run if the
main program has exited.

-- 
Skip Montanaro - skip at pobox.com - http://smontanaro.dyndns.org/



More information about the Python-list mailing list