server.c: Change select() mechanism to poll()

Signed-off-by: Ilya Nelkenbaum <ilyan@mellanox.com>