#9 Use select module to check output

@fizyk @pwilczynskiclearcode please, look at the code
Not, when it'll start as expected. And in case of timeout, you'll still
stay with poll object left.
2 lip 2014 15:18 "Tomek Święcicki" <notifications@github.com> napisał(a):

> In mirakuru/output.py:
>
> > @@ -50,10 +52,32 @@ def start(self):
> >              in process output.
> >          """
> >          Executor.start(self)
> > +
> > +        # get a polling object
> > +        self.poll_obj = select.poll()
> > +
> > +        # register a file descriptor
> > +        # POLLIN because we will wait for data to read
> > +        self.poll_obj.register(self.output(), select.POLLIN)
>
> But self.kill will remove self.process (None). So, I can't pass stdout to
> self.poll_obj.unregister method.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ClearcodeHQ/mirakuru/pull/16/files#r14455809>.
>