Fixing select() implementation (and usage)

UCC git Repository :: git.ucc.asn.au