Removed POSIX version check
switch out a busy wait with a call to 'poll'