On Tue, Apr 29, 2014 at 8:50 AM, Matthew Pounsett
wrote:
> Thanks, I'll keep all that in mind. I have to wonder how much of a problem
> it is here though, since I was able to demonstrate a functioning fork inside
> a new thread further up in the discussion.
>
Yeah, it's really hard to pin down
On Sunday, 27 April 2014 10:33:38 UTC-4, Chris Angelico wrote:
> In most contexts, "thread unsafe" simply means that you can't use the
> same facilities simultaneously from two threads (eg a lot of database
> connection libraries are thread unsafe with regard to a single
> connection, as they'll
On Mon, Apr 28, 2014 at 12:16 AM, Matthew Pounsett
wrote:
> On Friday, 25 April 2014 10:05:03 UTC-4, Chris Angelico wrote:
>> First culprit I'd look at is the mixing of subprocess and threading.
>> It's entirely possible that something goes messy when you fork from a
>> thread.
>
> I liked the th
On Friday, 25 April 2014 14:58:56 UTC-4, Ned Deily wrote:
> FWIW, the Python 2 version of subprocess is known to be thread-unsafe.
> There is a Py2 backport available on PyPI of the improved Python 3
> subprocess module:
Since that't the only thread that calls anything in subprocess, and I'm o
On Friday, 25 April 2014 10:05:03 UTC-4, Chris Angelico wrote:
> First culprit I'd look at is the mixing of subprocess and threading.
> It's entirely possible that something goes messy when you fork from a
> thread.
I liked the theory, but I've run some tests and can't reproduce the error that
w
In article
,
Chris Angelico wrote:
> On Fri, Apr 25, 2014 at 11:43 PM, Matthew Pounsett
> wrote:
> > If I insert that object into the test code and run it instead of
> > MyThread(), I get the error. I can't see anything in there that should
> > cause problems for the threading module though
On Fri, Apr 25, 2014 at 11:43 PM, Matthew Pounsett
wrote:
> If I insert that object into the test code and run it instead of MyThread(),
> I get the error. I can't see anything in there that should cause problems
> for the threading module though... especially since this runs fine on another
>