I changed main.c to Mak's example select() program.