Re: [Twisted-Python] __nonzero__ for Deferred

2015-03-20 Thread Justin Mazzola Paluska
On 03/18/2015 06:03 PM, Glyph Lefkowitz wrote: I'd like to deprecate and remove __nonzero__ on Deferreds. Occasionally I see code where someone (maybe even me) does "if d:" where they should have been doing "@d.addCallback def cb(result): if result: ...". Anybody else have this issue? Object

Re: [Twisted-Python] Call For Participation: a review rally before the race!

2014-10-13 Thread Justin Mazzola Paluska
And sending from the correct domain this time... --Justin On Mon, Oct 13, 2014 at 8:46 AM, Justin Mazzola Paluska wrote: > > On 10/09/2014 06:56 PM, Glyph Lefkowitz wrote: > > On November 1, ClusterHQ is going to be hosting a Twisted sprint in Boston. > > ... > > I

Re: [Twisted-Python] Call For Participation: a review rally before the race!

2014-10-13 Thread Justin Mazzola Paluska
On 10/09/2014 06:56 PM, Glyph Lefkowitz wrote: On November 1, ClusterHQ is going to be hosting a Twisted sprint in Boston. ... I am looking for at least 4 volunteers for a "review rally" starting on Monday, October 13. If each of 5 reviewers (the 4 volunteers, plus myself) can review 2 tickets

Re: [Twisted-Python] spawnProcess - reapProcess not retrying on failures

2014-09-03 Thread Justin Mazzola Paluska
On 09/02/2014 09:50 AM, exar...@twistedmatrix.com wrote: I dig deeper and I found out that since I was using reactor.run(installSignalHandlers=False) _SIGCHLDWaker was not installed. I have switched to using just reactor.run() and the process is now killed. Without my workaround, I continu

Re: [Twisted-Python] spawnProcess - reapProcess not retrying on failures

2014-09-02 Thread Justin Mazzola Paluska
On 09/02/2014 09:31 AM, Adi Roiban wrote: Problem solved... see below On 2 September 2014 12:05, Justin Mazzola Paluska wrote: On 09/02/2014 05:08 AM, Adi Roiban wrote: [snip] if pid: self.processEnded(status) unregisterReapProcessHandler(pid, self

Re: [Twisted-Python] spawnProcess - reapProcess not retrying on failures

2014-09-02 Thread Justin Mazzola Paluska
On Sep 2, 2014 8:22 AM, "Akira Li" <4kir4...@gmail.com> wrote: > > Justin Mazzola Paluska writes: > > Unrelated. > > > def unstick(): > > reapAllProcesses() > > reactor.callLater(1, unstick) > > &g

Re: [Twisted-Python] spawnProcess - reapProcess not retrying on failures

2014-09-02 Thread Justin Mazzola Paluska
On 09/02/2014 05:08 AM, Adi Roiban wrote: Hi, While using spawnProcess on Linux I found out that when an invalid executable is called there is a corner case in which a zombie process is left until main process exists and can not be closed. I wrote a test for this but I was not able to reproduce