Changed poll(2) to accept no fds in case of timeout.
Fixed poll(2) to return a status.
Implemented poll(2) of the slave side.