Called rd_select_() with fd == -1

This caused an abort (buffer overflow) when openlava was built with fortify support (as it is when built as an Ubuntu package).

Signed-off-by: Chris Smith <chris@distributedbio.com>