Attempt to fix race in SelectTask
Attempt to fix race in SelectTask

Let's mark the future as running as soon as we create it.  By the time
ProcessStreamHandler() is instantiated, the caller has passed us an
already running Popen, so it doesn't make much sense to create the
adapter before setting this.

This should fix #106 and #99

djipko/sparts,djipko/sparts,facebook/sparts,facebook/sparts