[PATCH] commandtest: Comply with FreeBSD poll()