Implemented phl_recv less stupidly using select()