Re: threading.Condition.wait() is not catching SIGTERM

2014-07-03 Thread Sangeeth Saravanaraj
On 04-Jul-2014, at 1:43 am, Ned Deily wrote: > In article <17f05a1b-44c8-4f25-afe9-5dbcffb99...@gmail.com>, >> I have the following code which when executed waits to be interrupted by >> SIGINT, SIGTERM or SIGQUIT. When an object is initialized, it creates a >> threading.Condition() and acquir

Re: threading.Condition.wait() is not catching SIGTERM

2014-07-03 Thread Cameron Simpson
On 03Jul2014 16:43, Roy Smith wrote: [...] Hmmm, I just also noticed what I think is a bug in the docs (https://docs.python.org/2/library/threading.html). It says, "If a call with blocking set to True would block, return False immediately". Isn't that backwards? Doesn't that describe the bloc

Re: threading.Condition.wait() is not catching SIGTERM

2014-07-03 Thread Roy Smith
In article , Ned Deily wrote: > In article <17f05a1b-44c8-4f25-afe9-5dbcffb99...@gmail.com>, > > I have the following code which when executed waits to be interrupted by > > SIGINT, SIGTERM or SIGQUIT. When an object is initialized, it creates a > > threading.Condition() and acquires() it! The

Re: threading.Condition.wait() is not catching SIGTERM

2014-07-03 Thread Ned Deily
In article <17f05a1b-44c8-4f25-afe9-5dbcffb99...@gmail.com>, > I have the following code which when executed waits to be interrupted by > SIGINT, SIGTERM or SIGQUIT. When an object is initialized, it creates a > threading.Condition() and acquires() it! The program then registers the > signal han

Re: threading.Condition.wait() is not catching SIGTERM

2014-07-03 Thread Chris Angelico
On Thu, Jul 3, 2014 at 8:27 PM, Sangeeth Saravanaraj wrote: > But does the behavior of threading.Condition.wait() depends on operating > system?! The behaviour of signals certainly does - there's a huge difference between Windows and POSIX, and there are lesser differences between Linux and Mac

Re: threading.Condition.wait() is not catching SIGTERM

2014-07-03 Thread Sangeeth Saravanaraj
On 03-Jul-2014, at 3:49 pm, Roy Smith wrote: > In article , > Sangeeth Saravanaraj wrote: > >> Hi All, >> >> I have the following code which when executed waits to be interrupted by >> SIGINT, SIGTERM or SIGQUIT. > > We need more information. What version of Python are you using? And, >

Re: threading.Condition.wait() is not catching SIGTERM

2014-07-03 Thread Roy Smith
In article , Sangeeth Saravanaraj wrote: > Hi All, > > I have the following code which when executed waits to be interrupted by > SIGINT, SIGTERM or SIGQUIT. We need more information. What version of Python are you using? And, what operating system is this running on? -- https://mail.pyt