Join a thread instead of sleeping.
Join a thread instead of sleeping.

* Instead of having a fixed sleep duration, start a thread
that monitors the subprocess.
* Started thread is joined, if process finishes thread returns
before timeout.
* Should increase speed and reduce overhead on CPU.

msp301/vimrc