Fixed threading issue in linux implementation of PipeIn