Revert "remove unneeded subprocess poll calls"

This reverts commit 5f81346c534d8221995cd3f8a0f1692f274e0fca.