Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #72219

Re: daemon thread cleanup approach

Newsgroups comp.lang.python
Date 2014-05-28 22:51 -0700
References <368aec88-ebe9-4da0-a537-92ff9b690647@googlegroups.com>
Message-ID <5a09e351-ab44-43ac-ad3f-10a73e01f092@googlegroups.com> (permalink)
Subject Re: daemon thread cleanup approach
From Miki Tebeka <miki.tebeka@gmail.com>

Show all headers | View raw


Greetings,

> Ok, so I have an issue with cleaning up threads upon a unexpected exit. 
What do you mean by "unexpected exit"? Uncaught exception? SIGTERM? ...

> Using atexit doesn't work because it's called after the daemon threads are killed.
I don't follow. Who is killing the daemon threads?

> ...
> It it possible that this will cause the program to hang in any case? 
If due to a bug in the cleanup thread it hangs - the program will hang as well.

All the best,
--
Miki

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

daemon thread cleanup approach Carl Banks <pavlovevidence@gmail.com> - 2014-05-28 18:20 -0700
  Re: daemon thread cleanup approach Miki Tebeka <miki.tebeka@gmail.com> - 2014-05-28 22:51 -0700
  Re: daemon thread cleanup approach Cameron Simpson <cs@zip.com.au> - 2014-05-29 16:07 +1000
  Re: daemon thread cleanup approach Chris Angelico <rosuav@gmail.com> - 2014-05-29 18:15 +1000
    Re: daemon thread cleanup approach Carl Banks <pavlovevidence@gmail.com> - 2014-05-29 12:40 -0700
  Re: daemon thread cleanup approach Devin Jeanpierre <jeanpierreda@gmail.com> - 2014-05-30 13:47 -0700
  Re: daemon thread cleanup approach Ethan Furman <ethan@stoneleaf.us> - 2014-05-30 13:59 -0700
  Re: daemon thread cleanup approach Devin Jeanpierre <jeanpierreda@gmail.com> - 2014-05-30 14:58 -0700

csiph-web