while (1) { $pm->start and next; while ($inputcon = $daemon->accept()) { do_client_stuff($inputcon); } $pm->finish(); }