OS-1817 yes(1) needs error handling to avoid spinning
Reviewed by: Robert Mustacchi <rm@joyent.com>