Python daemon in Linux

LarinAM at LarinAM at
Thu Jul 5 12:52:45 CEST 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
if there are only daemon threads around. If there are any non-daemon
threads, the Python process will only exit after those threads are
Or, as the documentation says: "The entire Python program exits when
active non-daemon threads are left."

Kind regards,

More information about the Python-list mailing list