19 months ago Omar Polo
use -1 instead of WAIT_ANY for portability
linux has it there...
initial import